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 Sep 12, 2023
1 parent a5fcf9f commit 502be38
Show file tree
Hide file tree
Showing 3 changed files with 407 additions and 227 deletions.
171 changes: 171 additions & 0 deletions codegen/sdk-codegen/aws-models/ec2.json
Original file line number Diff line number Diff line change
Expand Up @@ -3254,6 +3254,9 @@
{
"target": "com.amazonaws.ec2#DisableFastSnapshotRestores"
},
{
"target": "com.amazonaws.ec2#DisableImageBlockPublicAccess"
},
{
"target": "com.amazonaws.ec2#DisableImageDeprecation"
},
Expand Down Expand Up @@ -3332,6 +3335,9 @@
{
"target": "com.amazonaws.ec2#EnableFastSnapshotRestores"
},
{
"target": "com.amazonaws.ec2#EnableImageBlockPublicAccess"
},
{
"target": "com.amazonaws.ec2#EnableImageDeprecation"
},
Expand Down Expand Up @@ -3410,6 +3416,9 @@
{
"target": "com.amazonaws.ec2#GetHostReservationPurchasePreview"
},
{
"target": "com.amazonaws.ec2#GetImageBlockPublicAccessState"
},
{
"target": "com.amazonaws.ec2#GetInstanceTypesFromInstanceRequirements"
},
Expand Down Expand Up @@ -42750,6 +42759,50 @@
"smithy.api#output": {}
}
},
"com.amazonaws.ec2#DisableImageBlockPublicAccess": {
"type": "operation",
"input": {
"target": "com.amazonaws.ec2#DisableImageBlockPublicAccessRequest"
},
"output": {
"target": "com.amazonaws.ec2#DisableImageBlockPublicAccessResult"
},
"traits": {
"smithy.api#documentation": "<p>Disables <i>block public access for AMIs</i> at the account level in the\n specified Amazon Web Services Region. This removes the <i>block public access</i> restriction\n from your account. With the restriction removed, you can publicly share your AMIs in the\n specified Amazon Web Services Region.</p>\n <p>The API can take up to 10 minutes to configure this setting. During this time, if you run\n <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_GetImageBlockPublicAccessState.html\">GetImageBlockPublicAccessState</a>, the response will be\n <code>block-new-sharing</code>. When the API has completed the configuration, the response\n will be <code>unblocked</code>.</p>\n <p>For more information, see <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/sharingamis-intro.html#block-public-access-to-amis\">Block public access to your AMIs</a> in\n the <i>Amazon EC2 User Guide</i>.</p>"
}
},
"com.amazonaws.ec2#DisableImageBlockPublicAccessRequest": {
"type": "structure",
"members": {
"DryRun": {
"target": "com.amazonaws.ec2#Boolean",
"traits": {
"smithy.api#clientOptional": {},
"smithy.api#default": false,
"smithy.api#documentation": "<p>Checks whether you have the required permissions for the action, without actually making the request, \n\t\t\tand provides an error response. If you have the required permissions, the error response is \n\t\t\t<code>DryRunOperation</code>. Otherwise, it is <code>UnauthorizedOperation</code>.</p>"
}
}
},
"traits": {
"smithy.api#input": {}
}
},
"com.amazonaws.ec2#DisableImageBlockPublicAccessResult": {
"type": "structure",
"members": {
"ImageBlockPublicAccessState": {
"target": "com.amazonaws.ec2#ImageBlockPublicAccessDisabledState",
"traits": {
"aws.protocols#ec2QueryName": "ImageBlockPublicAccessState",
"smithy.api#documentation": "<p>Returns <code>unblocked</code> if the request succeeds; otherwise, it returns an\n error.</p>",
"smithy.api#xmlName": "imageBlockPublicAccessState"
}
}
},
"traits": {
"smithy.api#output": {}
}
},
"com.amazonaws.ec2#DisableImageDeprecation": {
"type": "operation",
"input": {
Expand Down Expand Up @@ -45991,6 +46044,58 @@
"smithy.api#output": {}
}
},
"com.amazonaws.ec2#EnableImageBlockPublicAccess": {
"type": "operation",
"input": {
"target": "com.amazonaws.ec2#EnableImageBlockPublicAccessRequest"
},
"output": {
"target": "com.amazonaws.ec2#EnableImageBlockPublicAccessResult"
},
"traits": {
"smithy.api#documentation": "<p>Enables <i>block public access for AMIs</i> at the account level in the\n specified Amazon Web Services Region. This prevents the public sharing of your AMIs. However, if you already\n have public AMIs, they will remain publicly available.</p>\n <p>The API can take up to 10 minutes to configure this setting. During this time, if you run\n <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_GetImageBlockPublicAccessState.html\">GetImageBlockPublicAccessState</a>, the response will be <code>unblocked</code>. When\n the API has completed the configuration, the response will be\n <code>block-new-sharing</code>.</p>\n <p>For more information, see <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/sharingamis-intro.html#block-public-access-to-amis\">Block\n public access to your AMIs</a> in the <i>Amazon EC2 User Guide</i>.</p>"
}
},
"com.amazonaws.ec2#EnableImageBlockPublicAccessRequest": {
"type": "structure",
"members": {
"ImageBlockPublicAccessState": {
"target": "com.amazonaws.ec2#ImageBlockPublicAccessEnabledState",
"traits": {
"smithy.api#clientOptional": {},
"smithy.api#documentation": "<p>Specify <code>block-new-sharing</code> to enable block public access for AMIs at the\n account level in the specified Region. This will block any attempt to publicly share your AMIs\n in the specified Region.</p>",
"smithy.api#required": {}
}
},
"DryRun": {
"target": "com.amazonaws.ec2#Boolean",
"traits": {
"smithy.api#clientOptional": {},
"smithy.api#default": false,
"smithy.api#documentation": "<p>Checks whether you have the required permissions for the action, without actually making the request, \n\t\t\tand provides an error response. If you have the required permissions, the error response is \n\t\t\t<code>DryRunOperation</code>. Otherwise, it is <code>UnauthorizedOperation</code>.</p>"
}
}
},
"traits": {
"smithy.api#input": {}
}
},
"com.amazonaws.ec2#EnableImageBlockPublicAccessResult": {
"type": "structure",
"members": {
"ImageBlockPublicAccessState": {
"target": "com.amazonaws.ec2#ImageBlockPublicAccessEnabledState",
"traits": {
"aws.protocols#ec2QueryName": "ImageBlockPublicAccessState",
"smithy.api#documentation": "<p>Returns <code>block-new-sharing</code> if the request succeeds; otherwise, it returns an\n error.</p>",
"smithy.api#xmlName": "imageBlockPublicAccessState"
}
}
},
"traits": {
"smithy.api#output": {}
}
},
"com.amazonaws.ec2#EnableImageDeprecation": {
"type": "operation",
"input": {
Expand Down Expand Up @@ -50919,6 +51024,50 @@
"smithy.api#output": {}
}
},
"com.amazonaws.ec2#GetImageBlockPublicAccessState": {
"type": "operation",
"input": {
"target": "com.amazonaws.ec2#GetImageBlockPublicAccessStateRequest"
},
"output": {
"target": "com.amazonaws.ec2#GetImageBlockPublicAccessStateResult"
},
"traits": {
"smithy.api#documentation": "<p>Gets the current state of <i>block public access for AMIs</i> at the account\n level in the specified Amazon Web Services Region.</p>\n <p>For more information, see <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/sharingamis-intro.html#block-public-access-to-amis\">Block\n public access to your AMIs</a> in the <i>Amazon EC2 User Guide</i>.</p>"
}
},
"com.amazonaws.ec2#GetImageBlockPublicAccessStateRequest": {
"type": "structure",
"members": {
"DryRun": {
"target": "com.amazonaws.ec2#Boolean",
"traits": {
"smithy.api#clientOptional": {},
"smithy.api#default": false,
"smithy.api#documentation": "<p>Checks whether you have the required permissions for the action, without actually making the request, \n\t\t\tand provides an error response. If you have the required permissions, the error response is \n\t\t\t<code>DryRunOperation</code>. Otherwise, it is <code>UnauthorizedOperation</code>.</p>"
}
}
},
"traits": {
"smithy.api#input": {}
}
},
"com.amazonaws.ec2#GetImageBlockPublicAccessStateResult": {
"type": "structure",
"members": {
"ImageBlockPublicAccessState": {
"target": "com.amazonaws.ec2#String",
"traits": {
"aws.protocols#ec2QueryName": "ImageBlockPublicAccessState",
"smithy.api#documentation": "<p>The current state of block public access for AMIs at the account level in the specified\n Amazon Web Services Region.</p>\n <p>Possible values:</p>\n <ul>\n <li>\n <p>\n <code>block-new-sharing</code> - Any attempt to publicly share your AMIs in the\n specified Region is blocked.</p>\n </li>\n <li>\n <p>\n <code>unblocked</code> - Your AMIs in the specified Region can be publicly\n shared.</p>\n </li>\n </ul>",
"smithy.api#xmlName": "imageBlockPublicAccessState"
}
}
},
"traits": {
"smithy.api#output": {}
}
},
"com.amazonaws.ec2#GetInstanceTypesFromInstanceRequirements": {
"type": "operation",
"input": {
Expand Down Expand Up @@ -55157,6 +55306,28 @@
}
}
},
"com.amazonaws.ec2#ImageBlockPublicAccessDisabledState": {
"type": "enum",
"members": {
"unblocked": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "unblocked"
}
}
}
},
"com.amazonaws.ec2#ImageBlockPublicAccessEnabledState": {
"type": "enum",
"members": {
"block_new_sharing": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "block-new-sharing"
}
}
}
},
"com.amazonaws.ec2#ImageDiskContainer": {
"type": "structure",
"members": {
Expand Down
57 changes: 48 additions & 9 deletions codegen/sdk-codegen/aws-models/eventbridge.json
Original file line number Diff line number Diff line change
Expand Up @@ -2010,6 +2010,17 @@
"smithy.api#pattern": "^[ \\t]*[^\\x00-\\x1F:\\x7F]+([ \\t]+[^\\x00-\\x1F:\\x7F]+)*[ \\t]*$"
}
},
"com.amazonaws.eventbridge#AuthHeaderParametersSensitive": {
"type": "string",
"traits": {
"smithy.api#length": {
"min": 1,
"max": 512
},
"smithy.api#pattern": "^[ \\t]*[^\\x00-\\x1F:\\x7F]+([ \\t]+[^\\x00-\\x1F:\\x7F]+)*[ \\t]*$",
"smithy.api#sensitive": {}
}
},
"com.amazonaws.eventbridge#AwsVpcConfiguration": {
"type": "structure",
"members": {
Expand Down Expand Up @@ -2444,7 +2455,7 @@
}
},
"Value": {
"target": "com.amazonaws.eventbridge#String",
"target": "com.amazonaws.eventbridge#SensitiveString",
"traits": {
"smithy.api#documentation": "<p>The value associated with the key.</p>"
}
Expand Down Expand Up @@ -2493,7 +2504,7 @@
}
},
"Value": {
"target": "com.amazonaws.eventbridge#HeaderValue",
"target": "com.amazonaws.eventbridge#HeaderValueSensitive",
"traits": {
"smithy.api#documentation": "<p>The value associated with the key.</p>"
}
Expand Down Expand Up @@ -2637,7 +2648,7 @@
}
},
"Value": {
"target": "com.amazonaws.eventbridge#QueryStringValue",
"target": "com.amazonaws.eventbridge#QueryStringValueSensitive",
"traits": {
"smithy.api#documentation": "<p>The value associated with the key for the query string parameter.</p>"
}
Expand Down Expand Up @@ -2973,7 +2984,7 @@
}
},
"ApiKeyValue": {
"target": "com.amazonaws.eventbridge#AuthHeaderParameters",
"target": "com.amazonaws.eventbridge#AuthHeaderParametersSensitive",
"traits": {
"smithy.api#documentation": "<p>The value for the API key to use for authorization.</p>",
"smithy.api#required": {}
Expand Down Expand Up @@ -3027,7 +3038,7 @@
}
},
"Password": {
"target": "com.amazonaws.eventbridge#AuthHeaderParameters",
"target": "com.amazonaws.eventbridge#AuthHeaderParametersSensitive",
"traits": {
"smithy.api#documentation": "<p>The password associated with the user name to use for Basic authorization.</p>",
"smithy.api#required": {}
Expand All @@ -3049,7 +3060,7 @@
}
},
"ClientSecret": {
"target": "com.amazonaws.eventbridge#AuthHeaderParameters",
"target": "com.amazonaws.eventbridge#AuthHeaderParametersSensitive",
"traits": {
"smithy.api#documentation": "<p>The client secret associated with the client ID to use for OAuth authorization for the\n connection.</p>",
"smithy.api#required": {}
Expand Down Expand Up @@ -5461,6 +5472,17 @@
"smithy.api#pattern": "^[ \\t]*[\\x20-\\x7E]+([ \\t]+[\\x20-\\x7E]+)*[ \\t]*$"
}
},
"com.amazonaws.eventbridge#HeaderValueSensitive": {
"type": "string",
"traits": {
"smithy.api#length": {
"min": 0,
"max": 512
},
"smithy.api#pattern": "^[ \\t]*[\\x20-\\x7E]+([ \\t]+[\\x20-\\x7E]+)*[ \\t]*$",
"smithy.api#sensitive": {}
}
},
"com.amazonaws.eventbridge#HealthCheck": {
"type": "string",
"traits": {
Expand Down Expand Up @@ -7556,6 +7578,17 @@
"smithy.api#pattern": "^[^\\x00-\\x09\\x0B\\x0C\\x0E-\\x1F\\x7F]+$"
}
},
"com.amazonaws.eventbridge#QueryStringValueSensitive": {
"type": "string",
"traits": {
"smithy.api#length": {
"min": 0,
"max": 512
},
"smithy.api#pattern": "^[^\\x00-\\x09\\x0B\\x0C\\x0E-\\x1F\\x7F]+$",
"smithy.api#sensitive": {}
}
},
"com.amazonaws.eventbridge#RedshiftDataParameters": {
"type": "structure",
"members": {
Expand Down Expand Up @@ -8394,6 +8427,12 @@
"smithy.api#pattern": "^arn:aws([a-z]|\\-)*:secretsmanager:([a-z]|\\d|\\-)*:([0-9]{12})?:secret:[\\/_+=\\.@\\-A-Za-z0-9]+$"
}
},
"com.amazonaws.eventbridge#SensitiveString": {
"type": "string",
"traits": {
"smithy.api#sensitive": {}
}
},
"com.amazonaws.eventbridge#Sql": {
"type": "string",
"traits": {
Expand Down Expand Up @@ -9236,7 +9275,7 @@
}
},
"ApiKeyValue": {
"target": "com.amazonaws.eventbridge#AuthHeaderParameters",
"target": "com.amazonaws.eventbridge#AuthHeaderParametersSensitive",
"traits": {
"smithy.api#documentation": "<p>The value associated with teh API key to use for authorization.</p>"
}
Expand Down Expand Up @@ -9288,7 +9327,7 @@
}
},
"Password": {
"target": "com.amazonaws.eventbridge#AuthHeaderParameters",
"target": "com.amazonaws.eventbridge#AuthHeaderParametersSensitive",
"traits": {
"smithy.api#documentation": "<p>The password associated with the user name to use for Basic authorization.</p>"
}
Expand All @@ -9308,7 +9347,7 @@
}
},
"ClientSecret": {
"target": "com.amazonaws.eventbridge#AuthHeaderParameters",
"target": "com.amazonaws.eventbridge#AuthHeaderParametersSensitive",
"traits": {
"smithy.api#documentation": "<p>The client secret assciated with the client ID to use for OAuth authorization.</p>"
}
Expand Down
Loading

0 comments on commit 502be38

Please sign in to comment.