Skip to content

Commit

Permalink
Update API model
Browse files Browse the repository at this point in the history
  • Loading branch information
AWS SDK for Go v2 automation user committed Jan 31, 2025
1 parent c94df29 commit f762573
Show file tree
Hide file tree
Showing 6 changed files with 387 additions and 240 deletions.
45 changes: 42 additions & 3 deletions codegen/sdk-codegen/aws-models/amp.json
Original file line number Diff line number Diff line change
Expand Up @@ -1402,6 +1402,12 @@
"smithy.api#required": {}
}
},
"roleConfiguration": {
"target": "com.amazonaws.amp#RoleConfiguration",
"traits": {
"smithy.api#documentation": "<p>The scraper role configuration for the workspace.</p>"
}
},
"clientToken": {
"target": "com.amazonaws.amp#IdempotencyToken",
"traits": {
Expand Down Expand Up @@ -2552,7 +2558,8 @@
"aws.api#arnReference": {
"type": "AWS::IAM::Role"
},
"smithy.api#documentation": "<p>An ARN identifying an IAM role used by the scraper.</p>"
"smithy.api#documentation": "<p>An ARN identifying an IAM role used by the scraper.</p>",
"smithy.api#pattern": "^arn:aws[-a-z]*:iam::[0-9]{12}:role/.+$"
}
},
"com.amazonaws.amp#IdempotencyToken": {
Expand Down Expand Up @@ -2602,7 +2609,7 @@
"min": 20,
"max": 2048
},
"smithy.api#pattern": "^arn:aws:kms:[a-z0-9\\-]+:\\d+:key/[a-f0-9\\-]+$"
"smithy.api#pattern": "^arn:aws[-a-z]*:kms:[-a-z0-9]+:[0-9]{12}:key/[-a-f0-9]+$"
}
},
"com.amazonaws.amp#ListRuleGroupsNamespaces": {
Expand Down Expand Up @@ -3081,7 +3088,7 @@
"aws.api#arnReference": {
"type": "AWS::Logs::LogGroup"
},
"smithy.api#pattern": "^arn:aws[a-z0-9-]*:logs:[a-z0-9-]+:\\d{12}:log-group:[A-Za-z0-9\\.\\-\\_\\#/]{1,512}\\:\\*$"
"smithy.api#pattern": "^arn:aws[-a-z]*:logs:[-a-z0-9]+:[0-9]{12}:log-group:[A-Za-z0-9\\.\\-\\_\\#/]{1,512}\\:\\*$"
}
},
"com.amazonaws.amp#LoggingConfiguration": {
Expand Down Expand Up @@ -3452,6 +3459,26 @@
"smithy.api#httpError": 404
}
},
"com.amazonaws.amp#RoleConfiguration": {
"type": "structure",
"members": {
"sourceRoleArn": {
"target": "com.amazonaws.amp#IamRoleArn",
"traits": {
"smithy.api#documentation": "<p>A ARN identifying the source role configuration.</p>"
}
},
"targetRoleArn": {
"target": "com.amazonaws.amp#IamRoleArn",
"traits": {
"smithy.api#documentation": "<p>A ARN identifying the target role configuration.</p>"
}
}
},
"traits": {
"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>"
}
},
"com.amazonaws.amp#RuleGroupsNamespace": {
"type": "resource",
"identifiers": {
Expand Down Expand Up @@ -3833,6 +3860,9 @@
"smithy.api#documentation": "<p>The Amazon Managed Service for Prometheus workspace the scraper sends metrics to.</p>",
"smithy.api#required": {}
}
},
"roleConfiguration": {
"target": "com.amazonaws.amp#RoleConfiguration"
}
},
"traits": {
Expand Down Expand Up @@ -4011,6 +4041,9 @@
"smithy.api#documentation": "<p>The Amazon Managed Service for Prometheus workspace the scraper sends metrics to.</p>",
"smithy.api#required": {}
}
},
"roleConfiguration": {
"target": "com.amazonaws.amp#RoleConfiguration"
}
},
"traits": {
Expand Down Expand Up @@ -4526,6 +4559,12 @@
"smithy.api#documentation": "<p>The new Amazon Managed Service for Prometheus workspace to send metrics to.</p>"
}
},
"roleConfiguration": {
"target": "com.amazonaws.amp#RoleConfiguration",
"traits": {
"smithy.api#documentation": "<p>The scraper role configuration for the workspace.</p>"
}
},
"clientToken": {
"target": "com.amazonaws.amp#IdempotencyToken",
"traits": {
Expand Down
16 changes: 16 additions & 0 deletions codegen/sdk-codegen/aws-models/bedrock-agent-runtime.json
Original file line number Diff line number Diff line change
Expand Up @@ -1567,8 +1567,24 @@
"citation": {
"target": "com.amazonaws.bedrockagentruntime#Citation",
"traits": {
"smithy.api#deprecated": {
"since": "2024-12-17",
"message": "Citation is deprecated. Please use GeneratedResponsePart and RetrievedReferences for citation event."
},
"smithy.api#documentation": "<p>The citation.</p>"
}
},
"generatedResponsePart": {
"target": "com.amazonaws.bedrockagentruntime#GeneratedResponsePart",
"traits": {
"smithy.api#documentation": "<p>The generated response to the citation event.</p>"
}
},
"retrievedReferences": {
"target": "com.amazonaws.bedrockagentruntime#RetrievedReferences",
"traits": {
"smithy.api#documentation": "<p>The retrieved references of the citation event.</p>"
}
}
},
"traits": {
Expand Down
Loading

0 comments on commit f762573

Please sign in to comment.