Skip to content

Commit 11c8818

Browse files
Update API model
1 parent 002f687 commit 11c8818

File tree

3 files changed

+145
-6
lines changed

3 files changed

+145
-6
lines changed

tools/code-generation/smithy/api-descriptions/codebuild.json

+14-2
Original file line numberDiff line numberDiff line change
@@ -3100,10 +3100,16 @@
31003100
"traits": {
31013101
"smithy.api#documentation": "<p>The machine type of the instance type included in your fleet.</p>"
31023102
}
3103+
},
3104+
"instanceType": {
3105+
"target": "com.amazonaws.codebuild#NonEmptyString",
3106+
"traits": {
3107+
"smithy.api#documentation": "<p>The EC2 instance type to be launched in your fleet.</p>"
3108+
}
31033109
}
31043110
},
31053111
"traits": {
3106-
"smithy.api#documentation": "<p>Contains compute attributes. These attributes only need be specified when your project's or fleet's <code>computeType</code> is set to <code>ATTRIBUTE_BASED_COMPUTE</code>.</p>"
3112+
"smithy.api#documentation": "<p>Contains compute attributes. These attributes only need be specified when your project's or fleet's <code>computeType</code> is set to <code>ATTRIBUTE_BASED_COMPUTE</code> or <code>CUSTOM_INSTANCE_TYPE</code>.</p>"
31073113
}
31083114
},
31093115
"com.amazonaws.codebuild#ComputeType": {
@@ -3174,6 +3180,12 @@
31743180
"traits": {
31753181
"smithy.api#enumValue": "ATTRIBUTE_BASED_COMPUTE"
31763182
}
3183+
},
3184+
"CUSTOM_INSTANCE_TYPE": {
3185+
"target": "smithy.api#Unit",
3186+
"traits": {
3187+
"smithy.api#enumValue": "CUSTOM_INSTANCE_TYPE"
3188+
}
31773189
}
31783190
}
31793191
},
@@ -8524,7 +8536,7 @@
85248536
"scope": {
85258537
"target": "com.amazonaws.codebuild#WebhookScopeType",
85268538
"traits": {
8527-
"smithy.api#documentation": "<p>The type of scope for a GitHub or GitLab webhook.</p>",
8539+
"smithy.api#documentation": "<p>The type of scope for a GitHub or GitLab webhook. The scope default is GITHUB_ORGANIZATION.</p>",
85288540
"smithy.api#required": {}
85298541
}
85308542
}

tools/code-generation/smithy/api-descriptions/ecs.json

+125-1
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,9 @@
221221
{
222222
"target": "com.amazonaws.ecs#StartTask"
223223
},
224+
{
225+
"target": "com.amazonaws.ecs#StopServiceDeployment"
226+
},
224227
{
225228
"target": "com.amazonaws.ecs#StopTask"
226229
},
@@ -10656,7 +10659,7 @@
1065610659
"cluster": {
1065710660
"target": "com.amazonaws.ecs#String",
1065810661
"traits": {
10659-
"smithy.api#documentation": "<p>The short name or full Amazon Resource Name (ARN) of the cluster to run your task on.\n\t\t\tIf you do not specify a cluster, the default cluster is assumed.</p>"
10662+
"smithy.api#documentation": "<p>The short name or full Amazon Resource Name (ARN) of the cluster to run your task on.\n\t\t\tIf you do not specify a cluster, the default cluster is assumed.</p>\n <p>Each account receives a default cluster the first time you use the service, but you\n\t\t\tmay also create other clusters.</p>"
1066010663
}
1066110664
},
1066210665
"count": {
@@ -11523,6 +11526,21 @@
1152311526
"smithy.api#documentation": "<p>Information about the circuit breaker used to determine when a service deployment has\n\t\t\tfailed.</p>\n <p>The deployment circuit breaker is the rolling update mechanism that determines if the\n\t\t\ttasks reach a steady state. The deployment circuit breaker has an option that will\n\t\t\tautomatically roll back a failed deployment to the last cpompleted service revision. For\n\t\t\tmore information, see <a href=\"https://docs.aws.amazon.com/AmazonECS/latest/developerguide/deployment-circuit-breaker.html\">How the Amazon\n\t\t\t\tECS deployment circuit breaker detects failures</a> in the<i> Amazon ECS\n\t\t\t\tDeveloper Guide</i>.</p>"
1152411527
}
1152511528
},
11529+
"com.amazonaws.ecs#ServiceDeploymentNotFoundException": {
11530+
"type": "structure",
11531+
"members": {
11532+
"message": {
11533+
"target": "com.amazonaws.ecs#String",
11534+
"traits": {
11535+
"smithy.api#documentation": "<p> Message that describes the cause of the exception.</p>"
11536+
}
11537+
}
11538+
},
11539+
"traits": {
11540+
"smithy.api#documentation": "<p>The service deploy ARN that you specified in the <code>StopServiceDeployment</code> doesn't exist. You can use <code>ListServiceDeployments</code> to retrieve the service deployment ARNs.</p>",
11541+
"smithy.api#error": "client"
11542+
}
11543+
},
1152611544
"com.amazonaws.ecs#ServiceDeploymentRollbackMonitorsStatus": {
1152711545
"type": "enum",
1152811546
"members": {
@@ -11585,6 +11603,12 @@
1158511603
"smithy.api#enumValue": "IN_PROGRESS"
1158611604
}
1158711605
},
11606+
"ROLLBACK_REQUESTED": {
11607+
"target": "smithy.api#Unit",
11608+
"traits": {
11609+
"smithy.api#enumValue": "ROLLBACK_REQUESTED"
11610+
}
11611+
},
1158811612
"ROLLBACK_IN_PROGRESS": {
1158911613
"target": "smithy.api#Unit",
1159011614
"traits": {
@@ -12374,6 +12398,106 @@
1237412398
"target": "com.amazonaws.ecs#KeyValuePair"
1237512399
}
1237612400
},
12401+
"com.amazonaws.ecs#StopServiceDeployment": {
12402+
"type": "operation",
12403+
"input": {
12404+
"target": "com.amazonaws.ecs#StopServiceDeploymentRequest"
12405+
},
12406+
"output": {
12407+
"target": "com.amazonaws.ecs#StopServiceDeploymentResponse"
12408+
},
12409+
"errors": [
12410+
{
12411+
"target": "com.amazonaws.ecs#AccessDeniedException"
12412+
},
12413+
{
12414+
"target": "com.amazonaws.ecs#ClientException"
12415+
},
12416+
{
12417+
"target": "com.amazonaws.ecs#ConflictException"
12418+
},
12419+
{
12420+
"target": "com.amazonaws.ecs#InvalidParameterException"
12421+
},
12422+
{
12423+
"target": "com.amazonaws.ecs#ServerException"
12424+
},
12425+
{
12426+
"target": "com.amazonaws.ecs#ServiceDeploymentNotFoundException"
12427+
},
12428+
{
12429+
"target": "com.amazonaws.ecs#UnsupportedFeatureException"
12430+
}
12431+
],
12432+
"traits": {
12433+
"smithy.api#documentation": "<p>Stops an ongoing service deployment.</p>\n <p>The following stop types are avaiable:</p>\n <ul>\n <li>\n <p>ROLLBACK - This option rolls back the service deployment to the previous\n\t\t\t\t\tservice revision. </p>\n <p>You can use this option even if you didn't configure the service deployment\n\t\t\t\t\tfor the rollback option. </p>\n </li>\n </ul>\n <p>For more information, see <a href=\"https://docs.aws.amazon.com/AmazonECS/latest/developerguide/stop-service-deployment.html\">Stopping Amazon ECS\n\t\t\t\tservice deployments</a> in the <i>Amazon Elastic Container Service Developer\n\t\t\tGuide</i>.</p>",
12434+
"smithy.api#examples": [
12435+
{
12436+
"title": "To stop a service deployment",
12437+
"documentation": "This example stops the service deployment using the ROLLBACK option.",
12438+
"input": {
12439+
"serviceDeploymentArn": "arn:aws:ecs:us-east-1:123456789012:service-deployment/MyCluster/MyService/r9i43YFjvgF_xlg7m2eJ1r",
12440+
"stopType": "ROLLBACK"
12441+
},
12442+
"output": {
12443+
"serviceDeploymentArn": "arn:aws:ecs:us-east-1:123456789012:service-deployment/MyCluster/MyService/r9i43YFjvgF_xlg7m2eJ1r"
12444+
}
12445+
}
12446+
]
12447+
}
12448+
},
12449+
"com.amazonaws.ecs#StopServiceDeploymentRequest": {
12450+
"type": "structure",
12451+
"members": {
12452+
"serviceDeploymentArn": {
12453+
"target": "com.amazonaws.ecs#String",
12454+
"traits": {
12455+
"smithy.api#documentation": "<p>The ARN of the service deployment that you want to stop.</p>",
12456+
"smithy.api#required": {}
12457+
}
12458+
},
12459+
"stopType": {
12460+
"target": "com.amazonaws.ecs#StopServiceDeploymentStopType",
12461+
"traits": {
12462+
"smithy.api#documentation": "<p>How you want Amazon ECS to stop the task. </p>\n <p>The valid values are <code>ROLLBACK</code>.</p>"
12463+
}
12464+
}
12465+
},
12466+
"traits": {
12467+
"smithy.api#input": {}
12468+
}
12469+
},
12470+
"com.amazonaws.ecs#StopServiceDeploymentResponse": {
12471+
"type": "structure",
12472+
"members": {
12473+
"serviceDeploymentArn": {
12474+
"target": "com.amazonaws.ecs#String",
12475+
"traits": {
12476+
"smithy.api#documentation": "<p>The ARN of the stopped service deployment.</p>"
12477+
}
12478+
}
12479+
},
12480+
"traits": {
12481+
"smithy.api#output": {}
12482+
}
12483+
},
12484+
"com.amazonaws.ecs#StopServiceDeploymentStopType": {
12485+
"type": "enum",
12486+
"members": {
12487+
"ABORT": {
12488+
"target": "smithy.api#Unit",
12489+
"traits": {
12490+
"smithy.api#enumValue": "ABORT"
12491+
}
12492+
},
12493+
"ROLLBACK": {
12494+
"target": "smithy.api#Unit",
12495+
"traits": {
12496+
"smithy.api#enumValue": "ROLLBACK"
12497+
}
12498+
}
12499+
}
12500+
},
1237712501
"com.amazonaws.ecs#StopTask": {
1237812502
"type": "operation",
1237912503
"input": {

tools/code-generation/smithy/api-descriptions/resource-explorer-2.json

+6-3
Original file line numberDiff line numberDiff line change
@@ -952,7 +952,7 @@
952952
"Name": {
953953
"target": "smithy.api#String",
954954
"traits": {
955-
"smithy.api#documentation": "<p>The name of the property that is included in this view.</p>\n <p>You can specify the following property names for this field:</p>\n <ul>\n <li>\n <p>\n <code>Tags</code>\n </p>\n </li>\n </ul>",
955+
"smithy.api#documentation": "<p>The name of the property that is included in this view.</p>\n <p>You can specify the following property names for this field:</p>\n <ul>\n <li>\n <p>\n <code>tags</code>\n </p>\n </li>\n </ul>",
956956
"smithy.api#length": {
957957
"min": 1,
958958
"max": 1011
@@ -1400,7 +1400,10 @@
14001400
"type": "structure",
14011401
"members": {
14021402
"Filters": {
1403-
"target": "com.amazonaws.resourceexplorer2#SearchFilter"
1403+
"target": "com.amazonaws.resourceexplorer2#SearchFilter",
1404+
"traits": {
1405+
"smithy.api#documentation": "<p>An array of strings that specify which resources are included in the results of \n queries made using this view. When you use this view in a <a>Search</a> \n operation, the filter string is combined with the search's <code>QueryString</code> \n parameter using a logical <code>AND</code> operator.</p>\n <p>For information about the supported syntax, see <a href=\"https://docs.aws.amazon.com/resource-explorer/latest/userguide/using-search-query-syntax.html\">Search query reference for\n Resource Explorer</a> in the <i>Amazon Web Services Resource Explorer User Guide</i>.</p>\n <important>\n <p>This query string in the context of this operation supports only <a href=\"https://docs.aws.amazon.com/resource-explorer/latest/userguide/using-search-query-syntax.html#query-syntax-filters\">filter\n prefixes</a> with optional <a href=\"https://docs.aws.amazon.com/resource-explorer/latest/userguide/using-search-query-syntax.html#query-syntax-operators\">operators</a>. It doesn't support free-form text. For example, the \n string <code>region:us* service:ec2 -tag:stage=prod</code> includes all Amazon EC2 \n resources in any Amazon Web Services Region that begins with the letters <code>us</code> and is\n <i>not</i> tagged with a key <code>Stage</code> that has the value\n <code>prod</code>.</p>\n </important>"
1406+
}
14041407
},
14051408
"MaxResults": {
14061409
"target": "smithy.api#Integer",
@@ -1425,7 +1428,7 @@
14251428
"NextToken": {
14261429
"target": "smithy.api#String",
14271430
"traits": {
1428-
"smithy.api#documentation": "<p>The parameter for receiving additional results if you receive a \n <code>NextToken</code> response in a previous request. A <code>NextToken</code> response \n indicates that more output is available. Set this parameter to the value of the previous \n call's <code>NextToken</code> response to indicate where the output should continue \n from. The pagination tokens expire after 24 hours.</p>",
1431+
"smithy.api#documentation": "<p>The parameter for receiving additional results if you receive a \n <code>NextToken</code> response in a previous request. A <code>NextToken</code> response \n indicates that more output is available. Set this parameter to the value of the previous \n call's <code>NextToken</code> response to indicate where the output should continue \n from. The pagination tokens expire after 24 hours.</p>\n <note>\n <p>The <code>ListResources</code> operation \n does not generate a <code>NextToken</code> if you set <code>MaxResults</code> to 1000. </p>\n </note>",
14291432
"smithy.api#length": {
14301433
"min": 1,
14311434
"max": 2048

0 commit comments

Comments
 (0)