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 #1792

Merged
merged 3 commits into from
Nov 1, 2024
Merged
Show file tree
Hide file tree
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 @@
f45dbad97046bef81fe1031e544675b3cc226f52
acce18bd14c29c394c3825137166e66e879f1eb4
182 changes: 182 additions & 0 deletions aws-cloudformation-schema/aws-bedrock-applicationinferenceprofile.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,182 @@
{
"typeName" : "AWS::Bedrock::ApplicationInferenceProfile",
"description" : "Definition of AWS::Bedrock::ApplicationInferenceProfile Resource Type",
"sourceUrl" : "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-bedrock-application-inference-profile",
"definitions" : {
"InferenceProfileModelSource" : {
"description" : "Various ways to encode a list of models in a CreateInferenceProfile request",
"oneOf" : [ {
"type" : "object",
"title" : "CopyFrom",
"properties" : {
"CopyFrom" : {
"type" : "string",
"maxLength" : 2048,
"minLength" : 1,
"pattern" : "^arn:aws(|-us-gov|-cn|-iso|-iso-b):bedrock:(|[0-9a-z-]{0,20}):(|[0-9]{12}):(inference-profile|foundation-model)/[a-zA-Z0-9-:.]+$",
"description" : "Source arns for a custom inference profile to copy its regional load balancing config from. This\ncan either be a foundation model or predefined inference profile ARN."
}
},
"required" : [ "CopyFrom" ],
"additionalProperties" : false
} ]
},
"InferenceProfileStatus" : {
"type" : "string",
"description" : "Status of the Inference Profile",
"enum" : [ "ACTIVE" ]
},
"InferenceProfileType" : {
"type" : "string",
"description" : "Type of the Inference Profile",
"enum" : [ "APPLICATION", "SYSTEM_DEFINED" ]
},
"InferenceProfileModel" : {
"type" : "object",
"description" : "Model configuration",
"properties" : {
"ModelArn" : {
"type" : "string",
"pattern" : "^arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}::foundation-model/[a-z0-9-]{1,63}[.]{1}([a-z0-9-]{1,63}[.]){0,2}[a-z0-9-]{1,63}([:][a-z0-9-]{1,63}){0,2}$",
"description" : "ARN for Foundation Models in Bedrock. These models can be used as base models for model customization jobs"
}
},
"additionalProperties" : false
},
"Tag" : {
"type" : "object",
"description" : "Definition of the key/value pair for a tag",
"properties" : {
"Key" : {
"type" : "string",
"maxLength" : 128,
"minLength" : 1,
"pattern" : "^[a-zA-Z0-9\\s._:/=+@-]*$",
"description" : "Tag Key"
},
"Value" : {
"type" : "string",
"maxLength" : 256,
"minLength" : 0,
"pattern" : "^[a-zA-Z0-9\\s._:/=+@-]*$",
"description" : "Tag Value"
}
},
"required" : [ "Key", "Value" ],
"additionalProperties" : false
},
"Unit" : {
"type" : "object",
"additionalProperties" : false
}
},
"properties" : {
"CreatedAt" : {
"type" : "string",
"description" : "Time Stamp",
"format" : "date-time"
},
"Description" : {
"type" : "string",
"maxLength" : 200,
"minLength" : 1,
"pattern" : "^([0-9a-zA-Z:.][ _-]?)+$",
"description" : "Description of the inference profile"
},
"InferenceProfileArn" : {
"type" : "string",
"maxLength" : 2048,
"minLength" : 1,
"pattern" : "^arn:aws(|-us-gov|-cn|-iso|-iso-b):bedrock:(|[0-9a-z-]{0,20}):(|[0-9]{12}):(inference-profile|application-inference-profile)/[a-zA-Z0-9-:.]+$"
},
"InferenceProfileId" : {
"type" : "string",
"maxLength" : 64,
"minLength" : 1,
"pattern" : "^[a-zA-Z0-9-:.]+$"
},
"InferenceProfileIdentifier" : {
"type" : "string",
"maxLength" : 2048,
"minLength" : 1,
"pattern" : "^(arn:aws(|-us-gov|-cn|-iso|-iso-b):bedrock:(|[0-9a-z-]{0,20}):(|[0-9]{12}):(inference-profile|application-inference-profile)/)?[a-zA-Z0-9-:.]+$",
"description" : "Inference profile identifier. Supports both system-defined inference profile ids, and inference profile ARNs."
},
"InferenceProfileName" : {
"type" : "string",
"maxLength" : 64,
"minLength" : 1,
"pattern" : "^([0-9a-zA-Z][ _-]?)+$"
},
"ModelSource" : {
"$ref" : "#/definitions/InferenceProfileModelSource"
},
"Models" : {
"type" : "array",
"items" : {
"$ref" : "#/definitions/InferenceProfileModel"
},
"maxItems" : 5,
"minItems" : 1,
"description" : "List of model configuration"
},
"Status" : {
"$ref" : "#/definitions/InferenceProfileStatus"
},
"Tags" : {
"type" : "array",
"items" : {
"$ref" : "#/definitions/Tag"
},
"maxItems" : 200,
"minItems" : 0,
"description" : "List of Tags"
},
"Type" : {
"$ref" : "#/definitions/InferenceProfileType"
},
"UpdatedAt" : {
"type" : "string",
"description" : "Time Stamp",
"format" : "date-time"
}
},
"required" : [ "InferenceProfileName" ],
"readOnlyProperties" : [ "/properties/Models", "/properties/InferenceProfileArn", "/properties/InferenceProfileId", "/properties/InferenceProfileIdentifier", "/properties/Status", "/properties/Type", "/properties/CreatedAt", "/properties/UpdatedAt" ],
"writeOnlyProperties" : [ "/properties/ModelSource" ],
"createOnlyProperties" : [ "/properties/Description", "/properties/InferenceProfileName", "/properties/ModelSource" ],
"primaryIdentifier" : [ "/properties/InferenceProfileIdentifier" ],
"handlers" : {
"create" : {
"permissions" : [ "bedrock:CreateInferenceProfile", "bedrock:GetInferenceProfile", "bedrock:TagResource", "bedrock:ListTagsForResource" ]
},
"read" : {
"permissions" : [ "bedrock:GetInferenceProfile", "bedrock:ListTagsForResource" ]
},
"update" : {
"permissions" : [ "bedrock:GetInferenceProfile", "bedrock:ListTagsForResource", "bedrock:TagResource", "bedrock:UntagResource" ]
},
"delete" : {
"permissions" : [ "bedrock:DeleteInferenceProfile", "bedrock:GetInferenceProfile" ]
},
"list" : {
"handlerSchema" : {
"properties" : {
"Type" : {
"$ref" : "resource-schema.json#/properties/Type"
}
}
},
"permissions" : [ "bedrock:ListInferenceProfiles" ]
}
},
"tagging" : {
"cloudFormationSystemTags" : true,
"tagOnCreate" : true,
"tagProperty" : "/properties/Tags",
"tagUpdatable" : true,
"taggable" : true,
"permissions" : [ "bedrock:TagResource", "bedrock:UntagResource", "bedrock:ListTagsForResource" ]
},
"additionalProperties" : false
}
4 changes: 2 additions & 2 deletions aws-cloudformation-schema/aws-bedrock-flow.json
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@
"type" : "string",
"maxLength" : 2048,
"minLength" : 1,
"pattern" : "^(arn:aws(-[^:]{1,12})?:bedrock:[a-z0-9-]{1,20}:([0-9]{12})?:([a-z-]+/)?)?([a-zA-Z0-9.-]{1,63}){0,2}(([:][a-z0-9-]{1,63}){0,2})?(/[a-z0-9]{1,12})?$",
"pattern" : "^(arn:aws(-[^:]{1,12})?:(bedrock|sagemaker):[a-z0-9-]{1,20}:([0-9]{12})?:([a-z-]+/)?)?([a-zA-Z0-9.-]{1,63}){0,2}(([:][a-z0-9-]{1,63}){0,2})?(/[a-z0-9]{1,12})?$",
"description" : "ARN or Id of a Bedrock Foundational Model or Inference Profile, or the ARN of a imported model, or a provisioned throughput ARN for custom models."
},
"GuardrailConfiguration" : {
Expand Down Expand Up @@ -530,7 +530,7 @@
"type" : "string",
"maxLength" : 2048,
"minLength" : 1,
"pattern" : "^(arn:aws(-[^:]{1,12})?:bedrock:[a-z0-9-]{1,20}:([0-9]{12})?:([a-z-]+/)?)?([a-zA-Z0-9.-]{1,63}){0,2}(([:][a-z0-9-]{1,63}){0,2})?(/[a-z0-9]{1,12})?$",
"pattern" : "^(arn:aws(-[^:]{1,12})?:(bedrock|sagemaker):[a-z0-9-]{1,20}:([0-9]{12})?:([a-z-]+/)?)?([a-zA-Z0-9.-]{1,63}){0,2}(([:][a-z0-9-]{1,63}){0,2})?(/[a-z0-9]{1,12})?$",
"description" : "ARN or Id of a Bedrock Foundational Model or Inference Profile, or the ARN of a imported model, or a provisioned throughput ARN for custom models."
},
"InferenceConfiguration" : {
Expand Down
4 changes: 2 additions & 2 deletions aws-cloudformation-schema/aws-bedrock-flowversion.json
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@
"type" : "string",
"maxLength" : 2048,
"minLength" : 1,
"pattern" : "^(arn:aws(-[^:]{1,12})?:bedrock:[a-z0-9-]{1,20}:([0-9]{12})?:([a-z-]+/)?)?([a-zA-Z0-9.-]{1,63}){0,2}(([:][a-z0-9-]{1,63}){0,2})?(/[a-z0-9]{1,12})?$",
"pattern" : "^(arn:aws(-[^:]{1,12})?:(bedrock|sagemaker):[a-z0-9-]{1,20}:([0-9]{12})?:([a-z-]+/)?)?([a-zA-Z0-9.-]{1,63}){0,2}(([:][a-z0-9-]{1,63}){0,2})?(/[a-z0-9]{1,12})?$",
"description" : "ARN or Id of a Bedrock Foundational Model or Inference Profile, or the ARN of a imported model, or a provisioned throughput ARN for custom models."
},
"GuardrailConfiguration" : {
Expand Down Expand Up @@ -510,7 +510,7 @@
"type" : "string",
"maxLength" : 2048,
"minLength" : 1,
"pattern" : "^(arn:aws(-[^:]{1,12})?:bedrock:[a-z0-9-]{1,20}:([0-9]{12})?:([a-z-]+/)?)?([a-zA-Z0-9.-]{1,63}){0,2}(([:][a-z0-9-]{1,63}){0,2})?(/[a-z0-9]{1,12})?$",
"pattern" : "^(arn:aws(-[^:]{1,12})?:(bedrock|sagemaker):[a-z0-9-]{1,20}:([0-9]{12})?:([a-z-]+/)?)?([a-zA-Z0-9.-]{1,63}){0,2}(([:][a-z0-9-]{1,63}){0,2})?(/[a-z0-9]{1,12})?$",
"description" : "ARN or Id of a Bedrock Foundational Model or Inference Profile, or the ARN of a imported model, or a provisioned throughput ARN for custom models."
},
"InferenceConfiguration" : {
Expand Down
2 changes: 1 addition & 1 deletion aws-cloudformation-schema/aws-bedrock-prompt.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"type" : "string",
"maxLength" : 2048,
"minLength" : 1,
"pattern" : "^(arn:aws(-[^:]{1,12})?:bedrock:[a-z0-9-]{1,20}:([0-9]{12})?:([a-z-]+/)?)?([a-zA-Z0-9.-]{1,63}){0,2}(([:][a-z0-9-]{1,63}){0,2})?(/[a-z0-9]{1,12})?$",
"pattern" : "^(arn:aws(-[^:]{1,12})?:(bedrock|sagemaker):[a-z0-9-]{1,20}:([0-9]{12})?:([a-z-]+/)?)?([a-zA-Z0-9.-]{1,63}){0,2}(([:][a-z0-9-]{1,63}){0,2})?(/[a-z0-9]{1,12})?$",
"description" : "ARN or Id of a Bedrock Foundational Model or Inference Profile, or the ARN of a imported model, or a provisioned throughput ARN for custom models."
},
"InferenceConfiguration" : {
Expand Down
2 changes: 1 addition & 1 deletion aws-cloudformation-schema/aws-bedrock-promptversion.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"type" : "string",
"maxLength" : 2048,
"minLength" : 1,
"pattern" : "^(arn:aws(-[^:]{1,12})?:bedrock:[a-z0-9-]{1,20}:([0-9]{12})?:([a-z-]+/)?)?([a-zA-Z0-9.-]{1,63}){0,2}(([:][a-z0-9-]{1,63}){0,2})?(/[a-z0-9]{1,12})?$",
"pattern" : "^(arn:aws(-[^:]{1,12})?:(bedrock|sagemaker):[a-z0-9-]{1,20}:([0-9]{12})?:([a-z-]+/)?)?([a-zA-Z0-9.-]{1,63}){0,2}(([:][a-z0-9-]{1,63}){0,2})?(/[a-z0-9]{1,12})?$",
"description" : "ARN or Id of a Bedrock Foundational Model or Inference Profile, or the ARN of a imported model, or a provisioned throughput ARN for custom models."
},
"InferenceConfiguration" : {
Expand Down
18 changes: 14 additions & 4 deletions aws-cloudformation-schema/aws-events-apidestination.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,31 @@
"description" : "Name of the apiDestination.",
"type" : "string",
"minLength" : 1,
"maxLength" : 64
"maxLength" : 64,
"pattern" : "[\\.\\-_A-Za-z0-9]+"
},
"Description" : {
"type" : "string",
"maxLength" : 512
},
"ConnectionArn" : {
"description" : "The arn of the connection.",
"type" : "string"
"type" : "string",
"pattern" : "^arn:aws([a-z]|\\-)*:events:([a-z]|\\d|\\-)*:([0-9]{12})?:connection/[\\.\\-_A-Za-z0-9]+/[\\-A-Za-z0-9]+$"
},
"Arn" : {
"description" : "The arn of the api destination.",
"type" : "string"
"type" : "string",
"pattern" : "^arn:aws([a-z]|\\-)*:events:([a-z]|\\d|\\-)*:([0-9]{12})?:api-destination/[\\.\\-_A-Za-z0-9]+/[\\-A-Za-z0-9]+$"
},
"InvocationRateLimitPerSecond" : {
"type" : "integer",
"minimum" : 1
},
"InvocationEndpoint" : {
"description" : "Url endpoint to invoke.",
"type" : "string"
"type" : "string",
"pattern" : "^((%[0-9A-Fa-f]{2}|[-()_.!~*';/?:@\\x26=+$,A-Za-z0-9])+)([).!';/?:,])?$"
},
"HttpMethod" : {
"type" : "string",
Expand All @@ -38,6 +42,12 @@
"readOnlyProperties" : [ "/properties/Arn" ],
"required" : [ "ConnectionArn", "InvocationEndpoint", "HttpMethod" ],
"primaryIdentifier" : [ "/properties/Name" ],
"tagging" : {
"taggable" : false,
"tagOnCreate" : false,
"tagUpdatable" : false,
"cloudFormationSystemTags" : false
},
"handlers" : {
"create" : {
"permissions" : [ "events:CreateApiDestination", "events:DescribeApiDestination" ]
Expand Down
12 changes: 10 additions & 2 deletions aws-cloudformation-schema/aws-events-archive.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"ArchiveName" : {
"type" : "string",
"minLength" : 1,
"maxLength" : 48
"maxLength" : 48,
"pattern" : "[\\.\\-_A-Za-z0-9]+"
},
"SourceArn" : {
"type" : "string"
Expand All @@ -18,7 +19,8 @@
"type" : "object"
},
"Arn" : {
"type" : "string"
"type" : "string",
"pattern" : "^arn:aws([a-z]|\\-)*:events:([a-z]|\\d|\\-)*:([0-9]{12})?:.+\\/.+$"
},
"RetentionDays" : {
"type" : "integer"
Expand All @@ -28,6 +30,12 @@
"readOnlyProperties" : [ "/properties/Arn" ],
"createOnlyProperties" : [ "/properties/ArchiveName", "/properties/SourceArn" ],
"primaryIdentifier" : [ "/properties/ArchiveName" ],
"tagging" : {
"taggable" : false,
"tagOnCreate" : false,
"tagUpdatable" : false,
"cloudFormationSystemTags" : false
},
"handlers" : {
"create" : {
"permissions" : [ "events:DescribeArchive", "events:CreateArchive" ]
Expand Down
Loading
Loading