Skip to content

Commit cb27085

Browse files
author
awstools
committed
feat(client-pcs): Fixed the validation pattern for an instance profile Amazon Resource Name (ARN) in AWS PCS.
1 parent 64051a9 commit cb27085

File tree

1 file changed

+35
-2
lines changed

1 file changed

+35
-2
lines changed

codegen/sdk-codegen/aws-models/pcs.json

Lines changed: 35 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1682,7 +1682,40 @@
16821682
"aws.iam#conditionKeys": ["aws:RequestTag/${TagKey}", "aws:TagKeys"],
16831683
"smithy.api#documentation": "<p>Creates a managed set of compute nodes. You associate a compute node group with a cluster through 1 or more Amazon Web Services PCS queues or as part of the login fleet. A compute node group includes the definition of the compute properties and lifecycle management. Amazon Web Services PCS uses the information you provide to this API action to launch compute nodes in your account. You can only specify subnets in the same Amazon VPC as your cluster. You receive billing charges for the compute nodes that Amazon Web Services PCS launches in your account. You must already have a launch template before you call this API. For more information, see <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-launch-templates.html\">Launch an instance from a launch template</a> in the <i>Amazon Elastic Compute Cloud User Guide for Linux Instances</i>.</p>",
16841684
"smithy.api#idempotent": {},
1685-
"smithy.api#tags": ["ComputeNodeGroup"]
1685+
"smithy.api#tags": ["ComputeNodeGroup"],
1686+
"smithy.test#smokeTests": [
1687+
{
1688+
"id": "InstanceArnSuccess",
1689+
"params": {
1690+
"clusterIdentifier": "testCluster",
1691+
"computeNodeGroupName": "testNodeGroupName",
1692+
"subnetIds": ["subnet-0cbf727bae9405b47"],
1693+
"scalingConfiguration": {
1694+
"minInstanceCount": 1,
1695+
"maxInstanceCount": 1
1696+
},
1697+
"iamInstanceProfileArn": "arn:aws:iam::975050141277:instance-profile/aws-pcs/example-role-2",
1698+
"customLaunchTemplate": {
1699+
"id": "lt-0b8f8ee3f92b73dc0",
1700+
"version": "1"
1701+
},
1702+
"instanceConfigs": [
1703+
{
1704+
"instanceType": "t3.medium"
1705+
}
1706+
]
1707+
},
1708+
"expect": {
1709+
"failure": {
1710+
"errorId": "com.amazonaws.pcs#AccessDeniedException"
1711+
}
1712+
},
1713+
"vendorParamsShape": "aws.test#AwsVendorParams",
1714+
"vendorParams": {
1715+
"region": "us-east-1"
1716+
}
1717+
}
1718+
]
16861719
}
16871720
},
16881721
"com.amazonaws.pcs#CreateComputeNodeGroupRequest": {
@@ -2460,7 +2493,7 @@
24602493
"com.amazonaws.pcs#InstanceProfileArn": {
24612494
"type": "string",
24622495
"traits": {
2463-
"smithy.api#pattern": "^arn:aws([a-zA-Z-]{0,10})?:iam::[0-9]{12}:instance-profile/[\\w+=,.@-]{1,128}$"
2496+
"smithy.api#pattern": "^arn:aws([a-zA-Z-]{0,10})?:iam::[0-9]{12}:instance-profile/[/\\w+=,.@-]{1,128}$"
24642497
}
24652498
},
24662499
"com.amazonaws.pcs#InternalServerException": {

0 commit comments

Comments
 (0)