Skip to content

Commit cb5cf0a

Browse files
feat: update AWS API models
1 parent 2e3860f commit cb5cf0a

File tree

6 files changed

+387
-240
lines changed

6 files changed

+387
-240
lines changed

codegen/sdk/aws-models/amp.json

Lines changed: 42 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1402,6 +1402,12 @@
14021402
"smithy.api#required": {}
14031403
}
14041404
},
1405+
"roleConfiguration": {
1406+
"target": "com.amazonaws.amp#RoleConfiguration",
1407+
"traits": {
1408+
"smithy.api#documentation": "<p>The scraper role configuration for the workspace.</p>"
1409+
}
1410+
},
14051411
"clientToken": {
14061412
"target": "com.amazonaws.amp#IdempotencyToken",
14071413
"traits": {
@@ -2552,7 +2558,8 @@
25522558
"aws.api#arnReference": {
25532559
"type": "AWS::IAM::Role"
25542560
},
2555-
"smithy.api#documentation": "<p>An ARN identifying an IAM role used by the scraper.</p>"
2561+
"smithy.api#documentation": "<p>An ARN identifying an IAM role used by the scraper.</p>",
2562+
"smithy.api#pattern": "^arn:aws[-a-z]*:iam::[0-9]{12}:role/.+$"
25562563
}
25572564
},
25582565
"com.amazonaws.amp#IdempotencyToken": {
@@ -2602,7 +2609,7 @@
26022609
"min": 20,
26032610
"max": 2048
26042611
},
2605-
"smithy.api#pattern": "^arn:aws:kms:[a-z0-9\\-]+:\\d+:key/[a-f0-9\\-]+$"
2612+
"smithy.api#pattern": "^arn:aws[-a-z]*:kms:[-a-z0-9]+:[0-9]{12}:key/[-a-f0-9]+$"
26062613
}
26072614
},
26082615
"com.amazonaws.amp#ListRuleGroupsNamespaces": {
@@ -3081,7 +3088,7 @@
30813088
"aws.api#arnReference": {
30823089
"type": "AWS::Logs::LogGroup"
30833090
},
3084-
"smithy.api#pattern": "^arn:aws[a-z0-9-]*:logs:[a-z0-9-]+:\\d{12}:log-group:[A-Za-z0-9\\.\\-\\_\\#/]{1,512}\\:\\*$"
3091+
"smithy.api#pattern": "^arn:aws[-a-z]*:logs:[-a-z0-9]+:[0-9]{12}:log-group:[A-Za-z0-9\\.\\-\\_\\#/]{1,512}\\:\\*$"
30853092
}
30863093
},
30873094
"com.amazonaws.amp#LoggingConfiguration": {
@@ -3452,6 +3459,26 @@
34523459
"smithy.api#httpError": 404
34533460
}
34543461
},
3462+
"com.amazonaws.amp#RoleConfiguration": {
3463+
"type": "structure",
3464+
"members": {
3465+
"sourceRoleArn": {
3466+
"target": "com.amazonaws.amp#IamRoleArn",
3467+
"traits": {
3468+
"smithy.api#documentation": "<p>A ARN identifying the source role configuration.</p>"
3469+
}
3470+
},
3471+
"targetRoleArn": {
3472+
"target": "com.amazonaws.amp#IamRoleArn",
3473+
"traits": {
3474+
"smithy.api#documentation": "<p>A ARN identifying the target role configuration.</p>"
3475+
}
3476+
}
3477+
},
3478+
"traits": {
3479+
"smithy.api#documentation": "<p>To configure roles that allows users to write to an Amazon Managed Service for Prometheus workspace in a different account.</p>"
3480+
}
3481+
},
34553482
"com.amazonaws.amp#RuleGroupsNamespace": {
34563483
"type": "resource",
34573484
"identifiers": {
@@ -3833,6 +3860,9 @@
38333860
"smithy.api#documentation": "<p>The Amazon Managed Service for Prometheus workspace the scraper sends metrics to.</p>",
38343861
"smithy.api#required": {}
38353862
}
3863+
},
3864+
"roleConfiguration": {
3865+
"target": "com.amazonaws.amp#RoleConfiguration"
38363866
}
38373867
},
38383868
"traits": {
@@ -4011,6 +4041,9 @@
40114041
"smithy.api#documentation": "<p>The Amazon Managed Service for Prometheus workspace the scraper sends metrics to.</p>",
40124042
"smithy.api#required": {}
40134043
}
4044+
},
4045+
"roleConfiguration": {
4046+
"target": "com.amazonaws.amp#RoleConfiguration"
40144047
}
40154048
},
40164049
"traits": {
@@ -4526,6 +4559,12 @@
45264559
"smithy.api#documentation": "<p>The new Amazon Managed Service for Prometheus workspace to send metrics to.</p>"
45274560
}
45284561
},
4562+
"roleConfiguration": {
4563+
"target": "com.amazonaws.amp#RoleConfiguration",
4564+
"traits": {
4565+
"smithy.api#documentation": "<p>The scraper role configuration for the workspace.</p>"
4566+
}
4567+
},
45294568
"clientToken": {
45304569
"target": "com.amazonaws.amp#IdempotencyToken",
45314570
"traits": {

codegen/sdk/aws-models/bedrock-agent-runtime.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1567,8 +1567,24 @@
15671567
"citation": {
15681568
"target": "com.amazonaws.bedrockagentruntime#Citation",
15691569
"traits": {
1570+
"smithy.api#deprecated": {
1571+
"since": "2024-12-17",
1572+
"message": "Citation is deprecated. Please use GeneratedResponsePart and RetrievedReferences for citation event."
1573+
},
15701574
"smithy.api#documentation": "<p>The citation.</p>"
15711575
}
1576+
},
1577+
"generatedResponsePart": {
1578+
"target": "com.amazonaws.bedrockagentruntime#GeneratedResponsePart",
1579+
"traits": {
1580+
"smithy.api#documentation": "<p>The generated response to the citation event.</p>"
1581+
}
1582+
},
1583+
"retrievedReferences": {
1584+
"target": "com.amazonaws.bedrockagentruntime#RetrievedReferences",
1585+
"traits": {
1586+
"smithy.api#documentation": "<p>The retrieved references of the citation event.</p>"
1587+
}
15721588
}
15731589
},
15741590
"traits": {

0 commit comments

Comments
 (0)