Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automated SDK generation @ aws-cloudformation-user-guide 19dc52cd3f2007d6d268b65b739ffb5ebf8c1e76 #2001

Closed
wants to merge 3 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .docs.version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2bd0dbd05c1fb10774e9f755d87cede090b46e19
4d82b99570cddb89505f0e678b67e39c43148b29
Original file line number Diff line number Diff line change
@@ -383,7 +383,8 @@
"tagOnCreate" : true,
"tagUpdatable" : true,
"cloudFormationSystemTags" : false,
"tagProperty" : "/properties/Tags"
"tagProperty" : "/properties/Tags",
"permissions" : [ "acm-pca:TagCertificateAuthority", "acm-pca:UntagCertificateAuthority" ]
},
"additionalProperties" : false,
"required" : [ "Type", "KeyAlgorithm", "SigningAlgorithm", "Subject" ],
269 changes: 268 additions & 1 deletion aws-cloudformation-schema/aws-bedrock-promptversion.json
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@
"PromptTemplateType" : {
"type" : "string",
"description" : "Prompt template type",
"enum" : [ "TEXT" ]
"enum" : [ "TEXT", "CHAT" ]
},
"PromptVariant" : {
"type" : "object",
@@ -32,6 +32,9 @@
},
"InferenceConfiguration" : {
"$ref" : "#/definitions/PromptInferenceConfiguration"
},
"GenAiResource" : {
"$ref" : "#/definitions/PromptGenAiResource"
}
},
"required" : [ "Name", "TemplateType", "TemplateConfiguration" ],
@@ -61,6 +64,45 @@
"required" : [ "Text" ],
"additionalProperties" : false
},
"ChatPromptTemplateConfiguration" : {
"type" : "object",
"description" : "Configuration for chat prompt template",
"properties" : {
"Messages" : {
"type" : "array",
"items" : {
"$ref" : "#/definitions/Message"
},
"minItems" : 0,
"description" : "List of messages for chat prompt template",
"insertionOrder" : true
},
"System" : {
"type" : "array",
"items" : {
"$ref" : "#/definitions/SystemContentBlock"
},
"minItems" : 0,
"description" : "Configuration for chat prompt template",
"insertionOrder" : true
},
"ToolConfiguration" : {
"$ref" : "#/definitions/ToolConfiguration"
},
"InputVariables" : {
"type" : "array",
"items" : {
"$ref" : "#/definitions/PromptInputVariable"
},
"maxItems" : 5,
"minItems" : 0,
"description" : "List of input variables",
"insertionOrder" : true
}
},
"required" : [ "Messages" ],
"additionalProperties" : false
},
"PromptTemplateConfiguration" : {
"description" : "Prompt template configuration",
"oneOf" : [ {
@@ -73,8 +115,205 @@
},
"required" : [ "Text" ],
"additionalProperties" : false
}, {
"type" : "object",
"title" : "Chat",
"properties" : {
"Chat" : {
"$ref" : "#/definitions/ChatPromptTemplateConfiguration"
}
},
"required" : [ "Chat" ],
"additionalProperties" : false
} ]
},
"ConversationRole" : {
"type" : "string",
"description" : "Conversation roles for the chat prompt",
"enum" : [ "user", "assistant" ]
},
"ContentBlock" : {
"description" : "Configuration for chat prompt template",
"oneOf" : [ {
"title" : "Text",
"type" : "object",
"properties" : {
"Text" : {
"type" : "string",
"minLength" : 1,
"description" : "Configuration for chat prompt template"
}
},
"required" : [ "Text" ],
"additionalProperties" : false
} ]
},
"SystemContentBlock" : {
"description" : "Configuration for chat prompt template",
"oneOf" : [ {
"title" : "Text",
"type" : "object",
"properties" : {
"Text" : {
"type" : "string",
"minLength" : 1,
"description" : "Configuration for chat prompt template"
}
},
"required" : [ "Text" ],
"additionalProperties" : false
} ]
},
"Message" : {
"type" : "object",
"description" : "Chat prompt Message",
"properties" : {
"Role" : {
"$ref" : "#/definitions/ConversationRole"
},
"Content" : {
"type" : "array",
"items" : {
"$ref" : "#/definitions/ContentBlock"
},
"minItems" : 1,
"description" : "List of Content Blocks",
"insertionOrder" : true
}
},
"required" : [ "Role", "Content" ],
"additionalProperties" : false
},
"ToolInputSchema" : {
"description" : "Tool input schema",
"oneOf" : [ {
"type" : "object",
"title" : "Json",
"properties" : {
"Json" : {
"type" : "object"
}
},
"description" : "Tool input schema json",
"required" : [ "Json" ],
"additionalProperties" : false
} ]
},
"ToolSpecification" : {
"type" : "object",
"description" : "Tool specification",
"properties" : {
"Name" : {
"type" : "string",
"pattern" : "^[a-zA-Z][a-zA-Z0-9_]*$",
"minLength" : 1,
"maxLength" : 64,
"description" : "Tool name"
},
"Description" : {
"type" : "string",
"minLength" : 1
},
"InputSchema" : {
"$ref" : "#/definitions/ToolInputSchema"
}
},
"required" : [ "Name", "InputSchema" ],
"additionalProperties" : false
},
"Tool" : {
"description" : "Tool details",
"oneOf" : [ {
"type" : "object",
"title" : "ToolSpec",
"properties" : {
"ToolSpec" : {
"$ref" : "#/definitions/ToolSpecification"
}
},
"required" : [ "ToolSpec" ],
"additionalProperties" : false
} ]
},
"AutoToolChoice" : {
"type" : "object",
"description" : "Auto Tool choice",
"additionalProperties" : false
},
"AnyToolChoice" : {
"type" : "object",
"description" : "Any Tool choice",
"additionalProperties" : false
},
"SpecificToolChoice" : {
"type" : "object",
"description" : "Specific Tool choice",
"properties" : {
"Name" : {
"type" : "string",
"pattern" : "^[a-zA-Z][a-zA-Z0-9_]*$",
"minLength" : 1,
"maxLength" : 64,
"description" : "Tool name"
}
},
"required" : [ "Name" ],
"additionalProperties" : false
},
"ToolChoice" : {
"description" : "Tool choice",
"oneOf" : [ {
"title" : "Auto",
"type" : "object",
"properties" : {
"Auto" : {
"$ref" : "#/definitions/AutoToolChoice"
}
},
"required" : [ "Auto" ],
"additionalProperties" : false
}, {
"title" : "Any",
"type" : "object",
"properties" : {
"Any" : {
"$ref" : "#/definitions/AnyToolChoice"
}
},
"required" : [ "Any" ],
"additionalProperties" : false
}, {
"title" : "Tool",
"type" : "object",
"properties" : {
"Tool" : {
"$ref" : "#/definitions/SpecificToolChoice"
}
},
"required" : [ "Tool" ],
"additionalProperties" : false
} ]
},
"ToolConfiguration" : {
"type" : "object",
"description" : "Tool configuration",
"properties" : {
"Tools" : {
"type" : "array",
"items" : {
"$ref" : "#/definitions/Tool"
},
"minItems" : 1,
"description" : "List of Tools",
"insertionOrder" : true
},
"ToolChoice" : {
"$ref" : "#/definitions/ToolChoice"
}
},
"required" : [ "Tools" ],
"additionalProperties" : false
},
"PromptModelInferenceConfiguration" : {
"type" : "object",
"description" : "Prompt model inference configuration",
@@ -149,6 +388,34 @@
}
},
"additionalProperties" : false
},
"PromptAgentResource" : {
"description" : "Target Agent to invoke with Prompt",
"type" : "object",
"properties" : {
"AgentIdentifier" : {
"type" : "string",
"maxLength" : 2048,
"pattern" : "^arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:[0-9]{12}:agent-alias/[0-9a-zA-Z]{10}/[0-9a-zA-Z]{10}$",
"description" : "Arn representation of the Agent Alias."
}
},
"required" : [ "AgentIdentifier" ],
"additionalProperties" : false
},
"PromptGenAiResource" : {
"description" : "Target resource to invoke with Prompt",
"oneOf" : [ {
"type" : "object",
"title" : "Agent",
"properties" : {
"Agent" : {
"$ref" : "#/definitions/PromptAgentResource"
}
},
"required" : [ "Agent" ],
"additionalProperties" : false
} ]
}
},
"properties" : {
3 changes: 2 additions & 1 deletion aws-cloudformation-schema/aws-connect-instance.json
Original file line number Diff line number Diff line change
@@ -148,7 +148,8 @@
"tagOnCreate" : true,
"tagUpdatable" : true,
"cloudFormationSystemTags" : true,
"tagProperty" : "/properties/Tags"
"tagProperty" : "/properties/Tags",
"permissions" : [ "connect:ListTagsForResource", "connect:UntagResource", "connect:TagResource" ]
},
"handlers" : {
"create" : {
2 changes: 1 addition & 1 deletion aws-cloudformation-schema/aws-connect-routingprofile.json
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@
"Channel" : {
"description" : "The channels that agents can handle in the Contact Control Panel (CCP).",
"type" : "string",
"enum" : [ "VOICE", "CHAT", "TASK" ]
"enum" : [ "VOICE", "CHAT", "TASK", "EMAIL" ]
},
"Concurrency" : {
"description" : "The number of contacts an agent can have on a channel simultaneously.",
4 changes: 2 additions & 2 deletions aws-cloudformation-schema/aws-datasync-locationefs.json
Original file line number Diff line number Diff line change
@@ -120,7 +120,7 @@
"required" : [ "Ec2Config" ],
"readOnlyProperties" : [ "/properties/LocationArn", "/properties/LocationUri" ],
"primaryIdentifier" : [ "/properties/LocationArn" ],
"createOnlyProperties" : [ "/properties/Ec2Config", "/properties/EfsFilesystemArn", "/properties/Subdirectory", "/properties/FileSystemAccessRoleArn", "/properties/InTransitEncryption", "/properties/AccessPointArn" ],
"createOnlyProperties" : [ "/properties/Ec2Config", "/properties/EfsFilesystemArn" ],
"writeOnlyProperties" : [ "/properties/EfsFilesystemArn", "/properties/Subdirectory" ],
"handlers" : {
"create" : {
@@ -130,7 +130,7 @@
"permissions" : [ "datasync:DescribeLocationEfs", "datasync:ListTagsForResource" ]
},
"update" : {
"permissions" : [ "datasync:DescribeLocationEfs", "datasync:ListTagsForResource", "datasync:TagResource", "datasync:UntagResource" ]
"permissions" : [ "datasync:UpdateLocationEfs", "datasync:DescribeLocationEfs", "datasync:ListTagsForResource", "datasync:TagResource", "datasync:UntagResource", "elasticfilesystem:DescribeFileSystems", "elasticfilesystem:DescribeAccessPoints" ]
},
"delete" : {
"permissions" : [ "datasync:DeleteLocation" ]
4 changes: 2 additions & 2 deletions aws-cloudformation-schema/aws-datasync-locationfsxlustre.json
Original file line number Diff line number Diff line change
@@ -88,7 +88,7 @@
"readOnlyProperties" : [ "/properties/LocationArn", "/properties/LocationUri" ],
"writeOnlyProperties" : [ "/properties/Subdirectory", "/properties/FsxFilesystemArn" ],
"primaryIdentifier" : [ "/properties/LocationArn" ],
"createOnlyProperties" : [ "/properties/FsxFilesystemArn", "/properties/SecurityGroupArns", "/properties/Subdirectory" ],
"createOnlyProperties" : [ "/properties/FsxFilesystemArn", "/properties/SecurityGroupArns" ],
"handlers" : {
"create" : {
"permissions" : [ "datasync:CreateLocationFsxLustre", "datasync:DescribeLocationFsxLustre", "datasync:ListTagsForResource", "datasync:TagResource", "fsx:DescribeFileSystems", "ec2:DescribeNetworkInterfaces", "ec2:DescribeSubnets", "ec2:DescribeSecurityGroups" ]
@@ -97,7 +97,7 @@
"permissions" : [ "datasync:DescribeLocationFsxLustre", "datasync:ListTagsForResource" ]
},
"update" : {
"permissions" : [ "datasync:DescribeLocationFsxLustre", "datasync:ListTagsForResource", "datasync:TagResource", "datasync:UntagResource" ]
"permissions" : [ "datasync:DescribeLocationFsxLustre", "datasync:ListTagsForResource", "datasync:UpdateLocationFsxLustre", "datasync:TagResource", "datasync:UntagResource", "fsx:DescribeFileSystems", "ec2:DescribeNetworkInterfaces" ]
},
"delete" : {
"permissions" : [ "datasync:DeleteLocation" ]
4 changes: 2 additions & 2 deletions aws-cloudformation-schema/aws-datasync-locationfsxontap.json
Original file line number Diff line number Diff line change
@@ -174,7 +174,7 @@
"readOnlyProperties" : [ "/properties/LocationArn", "/properties/LocationUri", "/properties/FsxFilesystemArn" ],
"writeOnlyProperties" : [ "/properties/Protocol", "/properties/Subdirectory" ],
"primaryIdentifier" : [ "/properties/LocationArn" ],
"createOnlyProperties" : [ "/properties/StorageVirtualMachineArn", "/properties/SecurityGroupArns", "/properties/Protocol", "/properties/Subdirectory" ],
"createOnlyProperties" : [ "/properties/StorageVirtualMachineArn", "/properties/SecurityGroupArns" ],
"handlers" : {
"create" : {
"permissions" : [ "datasync:CreateLocationFsxOntap", "datasync:DescribeLocationFsxOntap", "datasync:ListTagsForResource", "datasync:TagResource", "fsx:DescribeStorageVirtualMachines", "fsx:DescribeFileSystems", "ec2:DescribeNetworkInterfaces", "ec2:DescribeSubnets", "ec2:DescribeSecurityGroups" ]
@@ -183,7 +183,7 @@
"permissions" : [ "datasync:DescribeLocationFsxOntap", "datasync:ListTagsForResource" ]
},
"update" : {
"permissions" : [ "datasync:DescribeLocationFsxOntap", "datasync:ListTagsForResource", "datasync:TagResource", "datasync:UntagResource" ]
"permissions" : [ "datasync:UpdateLocationFsxOntap", "datasync:DescribeLocationFsxOntap", "datasync:ListTagsForResource", "datasync:TagResource", "datasync:UntagResource", "fsx:DescribeFileSystems", "fsx:DescribeStorageVirtualMachines", "ec2:DescribeNetworkInterfaces" ]
},
"delete" : {
"permissions" : [ "datasync:DeleteLocation" ]
Loading

Unchanged files with check annotations Beta

[Input("equals")]
private InputList<string>? _equals;
public InputList<string> Equals

Check warning on line 25 in sdk/dotnet/GuardDuty/Inputs/FilterConditionArgs.cs

GitHub Actions / build_sdks (dotnet)

'FilterConditionArgs.Equals' hides inherited member 'object.Equals(object?)'. Use the new keyword if hiding was intended.

Check warning on line 25 in sdk/dotnet/GuardDuty/Inputs/FilterConditionArgs.cs

GitHub Actions / build_sdks (dotnet)

'FilterConditionArgs.Equals' hides inherited member 'object.Equals(object?)'. Use the new keyword if hiding was intended.
{
get => _equals ?? (_equals = new InputList<string>());
set => _equals = value;
public sealed class FilterCondition
{
public readonly ImmutableArray<string> Eq;
public readonly ImmutableArray<string> Equals;

Check warning on line 17 in sdk/dotnet/GuardDuty/Outputs/FilterCondition.cs

GitHub Actions / build_sdks (dotnet)

'FilterCondition.Equals' hides inherited member 'object.Equals(object?)'. Use the new keyword if hiding was intended.
public readonly int? GreaterThan;
public readonly int? GreaterThanOrEqual;
public readonly int? Gt;
/// <summary>
/// An operator that includes events that match the exact value of the event record field specified as the value of Field. This is the only valid operator that you can use with the readOnly, eventCategory, and resources.type fields.
/// </summary>
public InputList<string> Equals

Check warning on line 36 in sdk/dotnet/CloudTrail/Inputs/EventDataStoreAdvancedFieldSelectorArgs.cs

GitHub Actions / build_sdks (dotnet)

'EventDataStoreAdvancedFieldSelectorArgs.Equals' hides inherited member 'object.Equals(object?)'. Use the new keyword if hiding was intended.
{
get => _equals ?? (_equals = new InputList<string>());
set => _equals = value;
/// <summary>
/// An operator that includes events that match the exact value of the event record field specified as the value of Field. This is the only valid operator that you can use with the readOnly, eventCategory, and resources.type fields.
/// </summary>
public InputList<string> Equals

Check warning on line 36 in sdk/dotnet/CloudTrail/Inputs/TrailAdvancedFieldSelectorArgs.cs

GitHub Actions / build_sdks (dotnet)

'TrailAdvancedFieldSelectorArgs.Equals' hides inherited member 'object.Equals(object?)'. Use the new keyword if hiding was intended.
{
get => _equals ?? (_equals = new InputList<string>());
set => _equals = value;
/// <summary>
/// An operator that includes events that match the exact value of the event record field specified as the value of Field. This is the only valid operator that you can use with the readOnly, eventCategory, and resources.type fields.
/// </summary>
public readonly ImmutableArray<string> Equals;

Check warning on line 26 in sdk/dotnet/CloudTrail/Outputs/EventDataStoreAdvancedFieldSelector.cs

GitHub Actions / build_sdks (dotnet)

'EventDataStoreAdvancedFieldSelector.Equals' hides inherited member 'object.Equals(object?)'. Use the new keyword if hiding was intended.
/// <summary>
/// A field in an event record on which to filter events to be logged. Supported fields include readOnly, eventCategory, eventSource (for management events), eventName, resources.type, and resources.ARN.
/// </summary>
/// <summary>
/// An operator that includes events that match the exact value of the event record field specified as the value of Field. This is the only valid operator that you can use with the readOnly, eventCategory, and resources.type fields.
/// </summary>
public readonly ImmutableArray<string> Equals;

Check warning on line 26 in sdk/dotnet/CloudTrail/Outputs/TrailAdvancedFieldSelector.cs

GitHub Actions / build_sdks (dotnet)

'TrailAdvancedFieldSelector.Equals' hides inherited member 'object.Equals(object?)'. Use the new keyword if hiding was intended.
/// <summary>
/// A field in an event record on which to filter events to be logged. Supported fields include readOnly, eventCategory, eventSource (for management events), eventName, resources.type, and resources.ARN.
/// </summary>
public ProviderArgs()
{
Profile = Utilities.GetEnv("AWS_PROFILE");

Check warning on line 252 in sdk/dotnet/Provider.cs

GitHub Actions / build_sdks (dotnet)

Possible null reference argument for parameter 'value' in 'Input<string>.implicit operator Input<string>(string value)'.
Region = Utilities.GetEnv("AWS_REGION", "AWS_DEFAULT_REGION");

Check warning on line 253 in sdk/dotnet/Provider.cs

GitHub Actions / build_sdks (dotnet)

Possible null reference argument for parameter 'value' in 'Input<string>.implicit operator Input<string>(string value)'.
SharedCredentialsFile = Utilities.GetEnv("AWS_SHARED_CREDENTIALS_FILE");

Check warning on line 254 in sdk/dotnet/Provider.cs

GitHub Actions / build_sdks (dotnet)

Possible null reference argument for parameter 'value' in 'Input<string>.implicit operator Input<string>(string value)'.
SkipCredentialsValidation = true;
SkipGetEc2Platforms = true;
SkipMetadataApiCheck = true;