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 Nov 13, 2024
1 parent 10b8b14 commit 673ae94
Show file tree
Hide file tree
Showing 10 changed files with 1,480 additions and 43 deletions.
53 changes: 50 additions & 3 deletions codegen/sdk-codegen/aws-models/accessanalyzer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"target": "com.amazonaws.accessanalyzer#ResourcesList",
"traits": {
"smithy.api#default": [],
"smithy.api#documentation": "<p>A list of resources for the access permissions. Any strings that can be used as a\n resource in an IAM policy can be used in the list of resources to check.</p>",
"smithy.api#documentation": "<p>A list of resources for the access permissions. Any strings that can be used as an\n Amazon Resource Name (ARN) in an IAM policy can be used in the list of resources to\n check. You can only use a wildcard in the portion of the ARN that specifies the resource\n ID.</p>",
"smithy.api#length": {
"max": 100
}
Expand Down Expand Up @@ -1433,6 +1433,12 @@
"traits": {
"smithy.api#documentation": "<p>The sources of the finding. This indicates how the access that generated the finding is\n granted. It is populated for Amazon S3 bucket findings.</p>"
}
},
"resourceControlPolicyRestriction": {
"target": "com.amazonaws.accessanalyzer#ResourceControlPolicyRestriction",
"traits": {
"smithy.api#documentation": "<p>The type of restriction applied to the finding by the resource owner with an Organizations\n resource control policy (RCP).</p>"
}
}
},
"traits": {
Expand Down Expand Up @@ -2189,7 +2195,7 @@
"access": {
"target": "com.amazonaws.accessanalyzer#AccessList",
"traits": {
"smithy.api#documentation": "<p>An access object containing the permissions that shouldn't be granted by the specified\n policy. If only actions are specified, IAM Access Analyzer checks for access of the actions on\n all resources in the policy. If only resources are specified, then IAM Access Analyzer checks\n which actions have access to the specified resources. If both actions and resources are\n specified, then IAM Access Analyzer checks which of the specified actions have access to the\n specified resources.</p>",
"smithy.api#documentation": "<p>An access object containing the permissions that shouldn't be granted by the specified\n policy. If only actions are specified, IAM Access Analyzer checks for access to peform at least\n one of the actions on any resource in the policy. If only resources are specified, then\n IAM Access Analyzer checks for access to perform any action on at least one of the resources. If\n both actions and resources are specified, IAM Access Analyzer checks for access to perform at\n least one of the specified actions on at least one of the specified resources.</p>",
"smithy.api#length": {
"max": 1
},
Expand All @@ -2199,7 +2205,7 @@
"policyType": {
"target": "com.amazonaws.accessanalyzer#AccessCheckPolicyType",
"traits": {
"smithy.api#documentation": "<p>The type of policy. Identity policies grant permissions to IAM principals. Identity\n policies include managed and inline policies for IAM roles, users, and groups.</p>\n <p>Resource policies grant permissions on Amazon Web Services resources. Resource policies include trust\n policies for IAM roles and bucket policies for Amazon S3 buckets. You can provide a generic\n input such as identity policy or resource policy or a specific input such as managed policy\n or Amazon S3 bucket policy.</p>",
"smithy.api#documentation": "<p>The type of policy. Identity policies grant permissions to IAM principals. Identity\n policies include managed and inline policies for IAM roles, users, and groups.</p>\n <p>Resource policies grant permissions on Amazon Web Services resources. Resource policies include trust\n policies for IAM roles and bucket policies for Amazon S3 buckets.</p>",
"smithy.api#required": {}
}
}
Expand Down Expand Up @@ -3270,6 +3276,12 @@
"traits": {
"smithy.api#documentation": "<p>The sources of the external access finding. This indicates how the access that generated\n the finding is granted. It is populated for Amazon S3 bucket findings.</p>"
}
},
"resourceControlPolicyRestriction": {
"target": "com.amazonaws.accessanalyzer#ResourceControlPolicyRestriction",
"traits": {
"smithy.api#documentation": "<p>The type of restriction applied to the finding by the resource owner with an Organizations\n resource control policy (RCP).</p>"
}
}
},
"traits": {
Expand Down Expand Up @@ -3379,6 +3391,12 @@
"traits": {
"smithy.api#documentation": "<p>The sources of the finding. This indicates how the access that generated the finding is\n granted. It is populated for Amazon S3 bucket findings.</p>"
}
},
"resourceControlPolicyRestriction": {
"target": "com.amazonaws.accessanalyzer#ResourceControlPolicyRestriction",
"traits": {
"smithy.api#documentation": "<p>The type of restriction applied to the finding by the resource owner with an Organizations\n resource control policy (RCP).</p>"
}
}
},
"traits": {
Expand Down Expand Up @@ -3655,6 +3673,12 @@
"traits": {
"smithy.api#documentation": "<p>The sources of the finding. This indicates how the access that generated the finding is\n granted. It is populated for Amazon S3 bucket findings.</p>"
}
},
"resourceControlPolicyRestriction": {
"target": "com.amazonaws.accessanalyzer#ResourceControlPolicyRestriction",
"traits": {
"smithy.api#documentation": "<p>The type of restriction applied to the finding by the resource owner with an Organizations\n resource control policy (RCP).</p>"
}
}
},
"traits": {
Expand Down Expand Up @@ -6183,6 +6207,10 @@
{
"value": "SERVICE_CONTROL_POLICY",
"name": "SERVICE_CONTROL_POLICY"
},
{
"value": "RESOURCE_CONTROL_POLICY",
"name": "RESOURCE_CONTROL_POLICY"
}
]
}
Expand Down Expand Up @@ -6490,6 +6518,25 @@
"smithy.api#pattern": "^arn:[^:]*:[^:]*:[^:]*:[^:]*:.*$"
}
},
"com.amazonaws.accessanalyzer#ResourceControlPolicyRestriction": {
"type": "string",
"traits": {
"smithy.api#enum": [
{
"value": "APPLICABLE",
"name": "APPLICABLE"
},
{
"value": "FAILED_TO_EVALUATE_RCP",
"name": "FAILED_TO_EVALUATE_RCP"
},
{
"value": "NOT_APPLICABLE",
"name": "NOT_APPLICABLE"
}
]
}
},
"com.amazonaws.accessanalyzer#ResourceNotFoundException": {
"type": "structure",
"members": {
Expand Down
53 changes: 53 additions & 0 deletions codegen/sdk-codegen/aws-models/application-signals.json
Original file line number Diff line number Diff line change
Expand Up @@ -548,6 +548,41 @@
"com.amazonaws.applicationsignals#BudgetSecondsRemaining": {
"type": "integer"
},
"com.amazonaws.applicationsignals#BurnRateConfiguration": {
"type": "structure",
"members": {
"LookBackWindowMinutes": {
"target": "com.amazonaws.applicationsignals#BurnRateLookBackWindowMinutes",
"traits": {
"smithy.api#documentation": "<p>The number of minutes to use as the look-back window.</p>",
"smithy.api#required": {}
}
}
},
"traits": {
"smithy.api#documentation": "<p>This object defines the length of the look-back window used to calculate one burn rate metric\n for this SLO. The burn rate measures how fast the service is consuming the error budget, relative to the attainment goal of the SLO. A burn rate of\n exactly 1 indicates that the SLO goal will be met exactly.</p>\n <p>For example, if you specify 60 as the number of minutes in the look-back window, the burn rate is calculated as the following:</p>\n <p>\n <i>burn rate = error rate over the look-back window / (1 - attainment goal percentage)</i>\n </p>\n <p>For more information about burn rates, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-ServiceLevelObjectives.html#CloudWatch-ServiceLevelObjectives-burn\">Calculate burn rates</a>.</p>"
}
},
"com.amazonaws.applicationsignals#BurnRateConfigurations": {
"type": "list",
"member": {
"target": "com.amazonaws.applicationsignals#BurnRateConfiguration"
},
"traits": {
"smithy.api#length": {
"max": 10
}
}
},
"com.amazonaws.applicationsignals#BurnRateLookBackWindowMinutes": {
"type": "integer",
"traits": {
"smithy.api#range": {
"min": 1,
"max": 10080
}
}
},
"com.amazonaws.applicationsignals#CalendarInterval": {
"type": "structure",
"members": {
Expand Down Expand Up @@ -674,6 +709,12 @@
"traits": {
"smithy.api#documentation": "<p>A list of key-value pairs to associate with the SLO. You can associate as many as 50 tags with an SLO.\n To be able to associate tags with the SLO when you create the SLO, you must\n have the <code>cloudwatch:TagResource</code> permission.</p>\n <p>Tags can help you organize and categorize your resources. You can also use them to scope user\n permissions by granting a user\n permission to access or change only resources with certain tag values.</p>"
}
},
"BurnRateConfigurations": {
"target": "com.amazonaws.applicationsignals#BurnRateConfigurations",
"traits": {
"smithy.api#documentation": "<p>Use this array to create <i>burn rates</i> for this SLO. Each \n burn rate is a metric that indicates how fast the service is consuming the error budget, relative to the attainment goal of the SLO.</p>"
}
}
},
"traits": {
Expand Down Expand Up @@ -2543,6 +2584,12 @@
"traits": {
"smithy.api#required": {}
}
},
"BurnRateConfigurations": {
"target": "com.amazonaws.applicationsignals#BurnRateConfigurations",
"traits": {
"smithy.api#documentation": "<p>Each object in this array defines the length of the look-back window used to calculate one burn rate metric\n for this SLO. The burn rate measures how fast the service is consuming the error budget, relative to the attainment goal of the SLO.</p>"
}
}
},
"traits": {
Expand Down Expand Up @@ -3392,6 +3439,12 @@
"traits": {
"smithy.api#documentation": "<p>A structure that contains the attributes that determine the goal of the SLO. This includes\n the time period for evaluation and the attainment threshold.</p>"
}
},
"BurnRateConfigurations": {
"target": "com.amazonaws.applicationsignals#BurnRateConfigurations",
"traits": {
"smithy.api#documentation": "<p>Use this array to create <i>burn rates</i> for this SLO. Each \n burn rate is a metric that indicates how fast the service is consuming the error budget, relative to the attainment goal of the SLO.</p>"
}
}
},
"traits": {
Expand Down
122 changes: 121 additions & 1 deletion codegen/sdk-codegen/aws-models/b2bi.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@
{
"target": "com.amazonaws.b2bi#CreateStarterMappingTemplate"
},
{
"target": "com.amazonaws.b2bi#GenerateMapping"
},
{
"target": "com.amazonaws.b2bi#GetTransformerJob"
},
Expand Down Expand Up @@ -2473,6 +2476,123 @@
}
}
},
"com.amazonaws.b2bi#GenerateMapping": {
"type": "operation",
"input": {
"target": "com.amazonaws.b2bi#GenerateMappingRequest"
},
"output": {
"target": "com.amazonaws.b2bi#GenerateMappingResponse"
},
"errors": [
{
"target": "com.amazonaws.b2bi#AccessDeniedException"
},
{
"target": "com.amazonaws.b2bi#InternalServerException"
},
{
"target": "com.amazonaws.b2bi#ThrottlingException"
},
{
"target": "com.amazonaws.b2bi#ValidationException"
}
],
"traits": {
"smithy.api#documentation": "<p>Takes sample input and output documents and uses Amazon Bedrock to generate a mapping automatically. Depending on the accuracy and other factors, you can then edit the mapping for your needs.</p>\n <note>\n <p>Before you can use the AI-assisted feature for Amazon Web Services B2B Data Interchange you must enable models in Amazon Bedrock. For details, see <a href=\"https://docs.aws.amazon.com/b2bi/latest/userguide/ai-assisted-mapping.html#ai-assist-prereq\">AI-assisted template mapping prerequisites</a> in\n the <i>Amazon Web Services B2B Data Interchange User guide</i>.</p>\n </note>",
"smithy.api#examples": [
{
"title": "Sample GenerateMapping call",
"input": {
"inputFileContent": "Sample input file content",
"outputFileContent": "Sample output file content",
"mappingType": "JSONATA"
},
"output": {
"mappingTemplate": "Sample mapping content",
"mappingAccuracy": 0.95
}
}
],
"smithy.api#http": {
"uri": "/generate-mapping",
"method": "POST"
},
"smithy.api#idempotent": {}
}
},
"com.amazonaws.b2bi#GenerateMappingInputFileContent": {
"type": "string",
"traits": {
"smithy.api#length": {
"min": 0,
"max": 5000000
}
}
},
"com.amazonaws.b2bi#GenerateMappingOutputFileContent": {
"type": "string",
"traits": {
"smithy.api#length": {
"min": 0,
"max": 5000000
}
}
},
"com.amazonaws.b2bi#GenerateMappingRequest": {
"type": "structure",
"members": {
"inputFileContent": {
"target": "com.amazonaws.b2bi#GenerateMappingInputFileContent",
"traits": {
"smithy.api#documentation": "<p>Provide the contents of a sample X12 EDI file (for inbound EDI) or JSON/XML file (for outbound EDI) to use as a starting point for the mapping.</p>",
"smithy.api#required": {}
}
},
"outputFileContent": {
"target": "com.amazonaws.b2bi#GenerateMappingOutputFileContent",
"traits": {
"smithy.api#documentation": "<p>Provide the contents of a sample X12 EDI file (for outbound EDI) or JSON/XML file (for inbound EDI) to use as a target for the mapping.</p>",
"smithy.api#required": {}
}
},
"mappingType": {
"target": "com.amazonaws.b2bi#MappingType",
"traits": {
"smithy.api#documentation": "<p>Specify the mapping type: either <code>JSONATA</code> or <code>XSLT.</code>\n </p>",
"smithy.api#required": {}
}
}
},
"traits": {
"smithy.api#input": {}
}
},
"com.amazonaws.b2bi#GenerateMappingResponse": {
"type": "structure",
"members": {
"mappingTemplate": {
"target": "smithy.api#String",
"traits": {
"smithy.api#documentation": "<p>Returns a mapping template based on your inputs.</p>",
"smithy.api#required": {}
}
},
"mappingAccuracy": {
"target": "smithy.api#Float",
"traits": {
"smithy.api#documentation": "<p>Returns a percentage that estimates the accuracy of the generated mapping.</p>",
"smithy.api#range": {
"min": 0.0,
"max": 1.0
}
}
}
},
"traits": {
"smithy.api#output": {}
}
},
"com.amazonaws.b2bi#GetCapability": {
"type": "operation",
"input": {
Expand Down Expand Up @@ -5970,7 +6090,7 @@
"status": {
"target": "com.amazonaws.b2bi#TransformerStatus",
"traits": {
"smithy.api#documentation": "<p>Specifies the transformer's status. You can update the state of the transformer, from <code>active</code> to <code>inactive</code>, or <code>inactive</code> to <code>active</code>.</p>"
"smithy.api#documentation": "<p>Specifies the transformer's status. You can update the state of the transformer from <code>inactive</code> to <code>active</code>.</p>"
}
},
"fileFormat": {
Expand Down
Loading

0 comments on commit 673ae94

Please sign in to comment.