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 6c68a17aef7f0ccd1f6786f19da341d8c92737e7 #1169

Closed
wants to merge 3 commits into from
Closed
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
201 changes: 102 additions & 99 deletions aws-cloudformation-schema/aws-ecs-cluster.json
Original file line number Diff line number Diff line change
@@ -1,169 +1,172 @@
{
"tagging" : {
"taggable" : true
},
"handlers" : {
"read" : {
"permissions" : [ "ecs:DescribeClusters" ]
},
"create" : {
"permissions" : [ "ecs:CreateCluster", "ecs:DescribeClusters", "iam:CreateServiceLinkedRole", "ecs:TagResource" ]
},
"update" : {
"permissions" : [ "ecs:PutAccountSettingDefault", "ecs:DescribeClusters", "ecs:TagResource", "ecs:UntagResource", "ecs:PutAccountSetting", "ecs:ListTagsForResource", "ecs:UpdateCluster", "ecs:UpdateClusterSettings", "ecs:PutClusterCapacityProviders" ]
},
"list" : {
"permissions" : [ "ecs:DescribeClusters", "ecs:ListClusters" ]
},
"delete" : {
"permissions" : [ "ecs:DeleteCluster", "ecs:DescribeClusters" ]
}
},
"typeName" : "AWS::ECS::Cluster",
"readOnlyProperties" : [ "/properties/Arn" ],
"description" : "Create an Elastic Container Service (ECS) cluster.",
"writeOnlyProperties" : [ "/properties/ServiceConnectDefaults" ],
"createOnlyProperties" : [ "/properties/ClusterName" ],
"additionalProperties" : false,
"primaryIdentifier" : [ "/properties/ClusterName" ],
"definitions" : {
"Tag" : {
"description" : "The metadata that you apply to the cluster to help you categorize and organize them. Each tag consists of a key and an optional value, both of which you define.",
"CapacityProviderStrategyItem" : {
"description" : "A capacity provider strategy consists of one or more capacity providers along with the `base` and `weight` to assign to them. A capacity provider must be associated with the cluster to be used in a capacity provider strategy. The PutClusterCapacityProviders API is used to associate a capacity provider with a cluster. Only capacity providers with an `ACTIVE` or `UPDATING` status can be used.",
"additionalProperties" : false,
"type" : "object",
"properties" : {
"Key" : {
"CapacityProvider" : {
"type" : "string"
},
"Value" : {
"type" : "string"
"Weight" : {
"type" : "integer"
},
"Base" : {
"type" : "integer"
}
},
"additionalProperties" : false
}
},
"ClusterSettings" : {
"description" : "The setting to use when creating a cluster. This parameter is used to enable CloudWatch Container Insights for a cluster. If this value is specified, it will override the containerInsights value set with PutAccountSetting or PutAccountSettingDefault.",
"ExecuteCommandLogConfiguration" : {
"description" : "The session logging configuration for ExecuteCommand.",
"additionalProperties" : false,
"type" : "object",
"properties" : {
"Name" : {
"S3EncryptionEnabled" : {
"type" : "boolean"
},
"CloudWatchEncryptionEnabled" : {
"type" : "boolean"
},
"CloudWatchLogGroupName" : {
"type" : "string"
},
"Value" : {
"S3KeyPrefix" : {
"type" : "string"
},
"S3BucketName" : {
"type" : "string"
}
},
"additionalProperties" : false
}
},
"ClusterConfiguration" : {
"description" : "The configurations to be set at cluster level.",
"ClusterSettings" : {
"description" : "The setting to use when creating a cluster. This parameter is used to enable CloudWatch Container Insights for a cluster. If this value is specified, it will override the containerInsights value set with PutAccountSetting or PutAccountSettingDefault.",
"additionalProperties" : false,
"type" : "object",
"properties" : {
"ExecuteCommandConfiguration" : {
"$ref" : "#/definitions/ExecuteCommandConfiguration"
"Value" : {
"type" : "string"
},
"Name" : {
"type" : "string"
}
},
"additionalProperties" : false
}
},
"ExecuteCommandConfiguration" : {
"description" : "The configuration for ExecuteCommand.",
"ServiceConnectDefaults" : {
"description" : "Service Connect Configuration default for all services or tasks within this cluster",
"additionalProperties" : false,
"type" : "object",
"properties" : {
"KmsKeyId" : {
"type" : "string"
},
"Logging" : {
"Namespace" : {
"description" : "Service Connect Namespace Name or ARN default for all services or tasks within this cluster",
"type" : "string"
},
"LogConfiguration" : {
"$ref" : "#/definitions/ExecuteCommandLogConfiguration"
}
},
"additionalProperties" : false
}
},
"ExecuteCommandLogConfiguration" : {
"description" : "The session logging configuration for ExecuteCommand.",
"Tag" : {
"description" : "The metadata that you apply to the cluster to help you categorize and organize them. Each tag consists of a key and an optional value, both of which you define.",
"additionalProperties" : false,
"type" : "object",
"properties" : {
"CloudWatchLogGroupName" : {
"type" : "string"
},
"CloudWatchEncryptionEnabled" : {
"type" : "boolean"
},
"S3BucketName" : {
"Value" : {
"type" : "string"
},
"S3EncryptionEnabled" : {
"type" : "boolean"
},
"S3KeyPrefix" : {
"Key" : {
"type" : "string"
}
},
"additionalProperties" : false
}
},
"ServiceConnectDefaults" : {
"description" : "Service Connect Configuration default for all services or tasks within this cluster",
"ClusterConfiguration" : {
"description" : "The configurations to be set at cluster level.",
"additionalProperties" : false,
"type" : "object",
"properties" : {
"Namespace" : {
"description" : "Service Connect Namespace Name or ARN default for all services or tasks within this cluster",
"type" : "string"
"ExecuteCommandConfiguration" : {
"$ref" : "#/definitions/ExecuteCommandConfiguration"
}
},
"additionalProperties" : false
}
},
"CapacityProviderStrategyItem" : {
"description" : "A capacity provider strategy consists of one or more capacity providers along with the `base` and `weight` to assign to them. A capacity provider must be associated with the cluster to be used in a capacity provider strategy. The PutClusterCapacityProviders API is used to associate a capacity provider with a cluster. Only capacity providers with an `ACTIVE` or `UPDATING` status can be used.",
"ExecuteCommandConfiguration" : {
"description" : "The configuration for ExecuteCommand.",
"additionalProperties" : false,
"type" : "object",
"properties" : {
"CapacityProvider" : {
"Logging" : {
"type" : "string"
},
"Weight" : {
"type" : "integer"
"KmsKeyId" : {
"type" : "string"
},
"Base" : {
"type" : "integer"
"LogConfiguration" : {
"$ref" : "#/definitions/ExecuteCommandLogConfiguration"
}
},
"additionalProperties" : false
}
}
},
"properties" : {
"Tags" : {
"ClusterSettings" : {
"type" : "array",
"items" : {
"$ref" : "#/definitions/Tag"
"$ref" : "#/definitions/ClusterSettings"
}
},
"ClusterName" : {
"description" : "A user-generated string that you use to identify your cluster. If you don't specify a name, AWS CloudFormation generates a unique physical ID for the name.",
"type" : "string"
},
"ClusterSettings" : {
"DefaultCapacityProviderStrategy" : {
"type" : "array",
"items" : {
"$ref" : "#/definitions/ClusterSettings"
"$ref" : "#/definitions/CapacityProviderStrategyItem"
}
},
"Configuration" : {
"$ref" : "#/definitions/ClusterConfiguration"
},
"ServiceConnectDefaults" : {
"$ref" : "#/definitions/ServiceConnectDefaults"
},
"CapacityProviders" : {
"type" : "array",
"items" : {
"type" : "string"
}
},
"DefaultCapacityProviderStrategy" : {
"type" : "array",
"items" : {
"$ref" : "#/definitions/CapacityProviderStrategyItem"
}
},
"ServiceConnectDefaults" : {
"$ref" : "#/definitions/ServiceConnectDefaults"
"ClusterName" : {
"description" : "A user-generated string that you use to identify your cluster. If you don't specify a name, AWS CloudFormation generates a unique physical ID for the name.",
"type" : "string"
},
"Arn" : {
"description" : "The Amazon Resource Name (ARN) of the Amazon ECS cluster, such as arn:aws:ecs:us-east-2:123456789012:cluster/MyECSCluster.",
"type" : "string"
}
},
"primaryIdentifier" : [ "/properties/ClusterName" ],
"handlers" : {
"create" : {
"permissions" : [ "ecs:CreateCluster", "ecs:DescribeClusters", "iam:CreateServiceLinkedRole" ]
},
"read" : {
"permissions" : [ "ecs:DescribeClusters" ]
},
"update" : {
"permissions" : [ "ecs:PutAccountSettingDefault", "ecs:DescribeClusters", "ecs:TagResource", "ecs:UntagResource", "ecs:PutAccountSetting", "ecs:ListTagsForResource", "ecs:UpdateCluster", "ecs:UpdateClusterSettings", "ecs:PutClusterCapacityProviders" ]
},
"delete" : {
"permissions" : [ "ecs:DeleteCluster", "ecs:DescribeClusters" ]
},
"list" : {
"permissions" : [ "ecs:DescribeClusters", "ecs:ListClusters" ]
"Tags" : {
"type" : "array",
"items" : {
"$ref" : "#/definitions/Tag"
}
}
},
"readOnlyProperties" : [ "/properties/Arn" ],
"createOnlyProperties" : [ "/properties/ClusterName" ],
"writeOnlyProperties" : [ "/properties/ServiceConnectDefaults" ],
"additionalProperties" : false
}
}
6 changes: 6 additions & 0 deletions aws-cloudformation-schema/aws-ecs-taskset.json
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,12 @@
}
},
"required" : [ "Cluster", "Service", "TaskDefinition" ],
"tagging" : {
"taggable" : false,
"tagOnCreate" : false,
"tagUpdatable" : false,
"cloudFormationSystemTags" : false
},
"createOnlyProperties" : [ "/properties/Cluster", "/properties/ExternalId", "/properties/LaunchType", "/properties/LoadBalancers", "/properties/NetworkConfiguration", "/properties/PlatformVersion", "/properties/Service", "/properties/ServiceRegistries", "/properties/TaskDefinition" ],
"readOnlyProperties" : [ "/properties/Id" ],
"primaryIdentifier" : [ "/properties/Cluster", "/properties/Service", "/properties/Id" ],
Expand Down
Loading