python-botocore/botocore/data/rbin/2021-06-15/service-2.json
2022-01-12 14:38:07 -08:00

644 lines
22 KiB
JSON

{
"version":"2.0",
"metadata":{
"apiVersion":"2021-06-15",
"endpointPrefix":"rbin",
"jsonVersion":"1.1",
"protocol":"rest-json",
"serviceFullName":"Amazon Recycle Bin",
"serviceId":"rbin",
"signatureVersion":"v4",
"signingName":"rbin",
"uid":"rbin-2021-06-15"
},
"operations":{
"CreateRule":{
"name":"CreateRule",
"http":{
"method":"POST",
"requestUri":"/rules",
"responseCode":201
},
"input":{"shape":"CreateRuleRequest"},
"output":{"shape":"CreateRuleResponse"},
"errors":[
{"shape":"ValidationException"},
{"shape":"ServiceQuotaExceededException"},
{"shape":"InternalServerException"}
],
"documentation":"<p>Creates a Recycle Bin retention rule. For more information, see <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/recycle-bin-working-with-rules.html#recycle-bin-create-rule\"> Create Recycle Bin retention rules</a> in the <i>Amazon EC2 User Guide</i>.</p>"
},
"DeleteRule":{
"name":"DeleteRule",
"http":{
"method":"DELETE",
"requestUri":"/rules/{identifier}",
"responseCode":204
},
"input":{"shape":"DeleteRuleRequest"},
"output":{"shape":"DeleteRuleResponse"},
"errors":[
{"shape":"InternalServerException"},
{"shape":"ResourceNotFoundException"},
{"shape":"ValidationException"}
],
"documentation":"<p>Deletes a Recycle Bin retention rule. For more information, see <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/recycle-bin-working-with-rules.html#recycle-bin-delete-rule\"> Delete Recycle Bin retention rules</a> in the <i>Amazon EC2 User Guide</i>.</p>"
},
"GetRule":{
"name":"GetRule",
"http":{
"method":"GET",
"requestUri":"/rules/{identifier}",
"responseCode":200
},
"input":{"shape":"GetRuleRequest"},
"output":{"shape":"GetRuleResponse"},
"errors":[
{"shape":"ValidationException"},
{"shape":"InternalServerException"},
{"shape":"ResourceNotFoundException"}
],
"documentation":"<p>Gets information about a Recycle Bin retention rule.</p>"
},
"ListRules":{
"name":"ListRules",
"http":{
"method":"POST",
"requestUri":"/list-rules",
"responseCode":200
},
"input":{"shape":"ListRulesRequest"},
"output":{"shape":"ListRulesResponse"},
"errors":[
{"shape":"ValidationException"},
{"shape":"InternalServerException"}
],
"documentation":"<p>Lists the Recycle Bin retention rules in the Region.</p>"
},
"ListTagsForResource":{
"name":"ListTagsForResource",
"http":{
"method":"GET",
"requestUri":"/tags/{resourceArn}",
"responseCode":200
},
"input":{"shape":"ListTagsForResourceRequest"},
"output":{"shape":"ListTagsForResourceResponse"},
"errors":[
{"shape":"ValidationException"},
{"shape":"InternalServerException"},
{"shape":"ResourceNotFoundException"}
],
"documentation":"<p>Lists the tags assigned a specific resource.</p>"
},
"TagResource":{
"name":"TagResource",
"http":{
"method":"POST",
"requestUri":"/tags/{resourceArn}",
"responseCode":201
},
"input":{"shape":"TagResourceRequest"},
"output":{"shape":"TagResourceResponse"},
"errors":[
{"shape":"ValidationException"},
{"shape":"InternalServerException"},
{"shape":"ResourceNotFoundException"},
{"shape":"ServiceQuotaExceededException"}
],
"documentation":"<p>Assigns tags to the specified resource.</p>"
},
"UntagResource":{
"name":"UntagResource",
"http":{
"method":"DELETE",
"requestUri":"/tags/{resourceArn}",
"responseCode":204
},
"input":{"shape":"UntagResourceRequest"},
"output":{"shape":"UntagResourceResponse"},
"errors":[
{"shape":"ValidationException"},
{"shape":"InternalServerException"},
{"shape":"ResourceNotFoundException"}
],
"documentation":"<p>Unassigns a tag from a resource.</p>"
},
"UpdateRule":{
"name":"UpdateRule",
"http":{
"method":"PATCH",
"requestUri":"/rules/{identifier}",
"responseCode":200
},
"input":{"shape":"UpdateRuleRequest"},
"output":{"shape":"UpdateRuleResponse"},
"errors":[
{"shape":"ValidationException"},
{"shape":"InternalServerException"},
{"shape":"ResourceNotFoundException"}
],
"documentation":"<p>Updates an existing Recycle Bin retention rule. For more information, see <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/recycle-bin-working-with-rules.html#recycle-bin-update-rule\"> Update Recycle Bin retention rules</a> in the <i>Amazon EC2 User Guide</i>.</p>"
}
},
"shapes":{
"CreateRuleRequest":{
"type":"structure",
"required":[
"RetentionPeriod",
"ResourceType"
],
"members":{
"RetentionPeriod":{
"shape":"RetentionPeriod",
"documentation":"<p>Information about the retention period for which the retention rule is to retain resources.</p>"
},
"Description":{
"shape":"Description",
"documentation":"<p>A brief description for the retention rule.</p>"
},
"Tags":{
"shape":"TagList",
"documentation":"<p>Information about the tags to assign to the retention rule.</p>"
},
"ResourceType":{
"shape":"ResourceType",
"documentation":"<p>The resource type to be retained by the retention rule. Currently, only Amazon EBS snapshots are supported.</p>"
},
"ResourceTags":{
"shape":"ResourceTags",
"documentation":"<p>Information about the resource tags to use to identify resources that are to be retained by the retention rule. The retention rule retains only deleted snapshots that have one or more of the specified tag key and value pairs. If a snapshot is deleted, but it does not have any of the specified tag key and value pairs, it is immediately deleted without being retained by the retention rule.</p> <p>You can add the same tag key and value pair to a maximum or five retention rules.</p>"
}
}
},
"CreateRuleResponse":{
"type":"structure",
"members":{
"Identifier":{
"shape":"RuleIdentifier",
"documentation":"<p>The unique identifier of the retention rule.</p>"
},
"RetentionPeriod":{"shape":"RetentionPeriod"},
"Description":{
"shape":"Description",
"documentation":"<p>The retention rule description.</p>"
},
"Tags":{
"shape":"TagList",
"documentation":"<p>The tags assigned to the retention rule.</p>"
},
"ResourceType":{
"shape":"ResourceType",
"documentation":"<p>The resource type retained by the retention rule.</p>"
},
"ResourceTags":{
"shape":"ResourceTags",
"documentation":"<p>Information about the resource tags used to identify resources that are retained by the retention rule.</p>"
},
"Status":{
"shape":"RuleStatus",
"documentation":"<p>The state of the retention rule. Only retention rules that are in the <code>available</code> state retain snapshots.</p>"
}
}
},
"DeleteRuleRequest":{
"type":"structure",
"required":["Identifier"],
"members":{
"Identifier":{
"shape":"RuleIdentifier",
"documentation":"<p>The unique ID of the retention rule to delete.</p>",
"location":"uri",
"locationName":"identifier"
}
}
},
"DeleteRuleResponse":{
"type":"structure",
"members":{
}
},
"Description":{
"type":"string",
"pattern":"^[\\S ]{0,255}$"
},
"ErrorMessage":{"type":"string"},
"GetRuleRequest":{
"type":"structure",
"required":["Identifier"],
"members":{
"Identifier":{
"shape":"RuleIdentifier",
"documentation":"<p>The unique ID of the retention rule.</p>",
"location":"uri",
"locationName":"identifier"
}
}
},
"GetRuleResponse":{
"type":"structure",
"members":{
"Identifier":{
"shape":"RuleIdentifier",
"documentation":"<p>The unique ID of the retention rule.</p>"
},
"Description":{
"shape":"Description",
"documentation":"<p>The description assigned to the retention rule.</p>"
},
"ResourceType":{
"shape":"ResourceType",
"documentation":"<p>The resource type retained by the retention rule. Currently, only Amazon EBS snapshots are supported.</p>"
},
"RetentionPeriod":{
"shape":"RetentionPeriod",
"documentation":"<p>Information about the period for which the retention rule retains resources.</p>"
},
"ResourceTags":{
"shape":"ResourceTags",
"documentation":"<p>The resource tags used to identify resources that are to be retained by the retention rule.</p>"
},
"Status":{
"shape":"RuleStatus",
"documentation":"<p>The state of the retention rule. Only retention rules that are in the <code>available</code> state retain snapshots.</p>"
}
}
},
"InternalServerException":{
"type":"structure",
"members":{
"Message":{"shape":"ErrorMessage"}
},
"documentation":"<p>The service could not respond to the request due to an internal problem.</p>",
"error":{"httpStatusCode":500},
"exception":true,
"fault":true
},
"ListRulesRequest":{
"type":"structure",
"required":["ResourceType"],
"members":{
"MaxResults":{
"shape":"MaxResults",
"documentation":"<p>The maximum number of results to return for the request in a single page. The remaining results can be seen by sending another request with the returned <code>nextToken</code> value. This value can be between 5 and 500. If <code>maxResults</code> is given a larger value than 500, you receive an error.</p>"
},
"NextToken":{
"shape":"NextToken",
"documentation":"<p>The token to use to retrieve the next page of results.</p>"
},
"ResourceType":{
"shape":"ResourceType",
"documentation":"<p>The resource type retained by the retention rule. Only retention rules that retain the specified resource type are listed.</p>"
},
"ResourceTags":{
"shape":"ResourceTags",
"documentation":"<p>The tags used to identify resources that are to be retained by the retention rule.</p>"
}
}
},
"ListRulesResponse":{
"type":"structure",
"members":{
"Rules":{
"shape":"RuleSummaryList",
"documentation":"<p>Information about the retention rules.</p>"
},
"NextToken":{
"shape":"NextToken",
"documentation":"<p>The token to use to retrieve the next page of results. This value is <code>null</code> when there are no more results to return.</p>"
}
}
},
"ListTagsForResourceRequest":{
"type":"structure",
"required":["ResourceArn"],
"members":{
"ResourceArn":{
"shape":"RuleArn",
"documentation":"<p>The Amazon Resource Name (ARN) of the resource for which to list the tags.</p>",
"location":"uri",
"locationName":"resourceArn"
}
}
},
"ListTagsForResourceResponse":{
"type":"structure",
"members":{
"Tags":{
"shape":"TagList",
"documentation":"<p>Information about the tags assigned to the resource.</p>"
}
}
},
"MaxResults":{
"type":"integer",
"max":1000,
"min":1
},
"NextToken":{
"type":"string",
"pattern":"^[A-Za-z0-9+/=]{1,2048}$"
},
"ResourceNotFoundException":{
"type":"structure",
"members":{
"Message":{"shape":"ErrorMessage"},
"Reason":{
"shape":"ResourceNotFoundExceptionReason",
"documentation":"<p>The reason for the exception.</p>"
}
},
"documentation":"<p>The specified resource was not found.</p>",
"error":{"httpStatusCode":404},
"exception":true
},
"ResourceNotFoundExceptionReason":{
"type":"string",
"enum":["RULE_NOT_FOUND"]
},
"ResourceTag":{
"type":"structure",
"required":["ResourceTagKey"],
"members":{
"ResourceTagKey":{
"shape":"ResourceTagKey",
"documentation":"<p>The tag key.</p>"
},
"ResourceTagValue":{
"shape":"ResourceTagValue",
"documentation":"<p>The tag value.</p>"
}
},
"documentation":"<p>Information about a resource tag used to identify resources that are to be retained by a Recycle Bin retention rule.</p>"
},
"ResourceTagKey":{
"type":"string",
"pattern":"^[\\S\\s]{1,128}$"
},
"ResourceTagValue":{
"type":"string",
"pattern":"^[\\S\\s]{0,256}$"
},
"ResourceTags":{
"type":"list",
"member":{"shape":"ResourceTag"},
"max":50,
"min":0
},
"ResourceType":{
"type":"string",
"enum":["EBS_SNAPSHOT"]
},
"RetentionPeriod":{
"type":"structure",
"required":[
"RetentionPeriodValue",
"RetentionPeriodUnit"
],
"members":{
"RetentionPeriodValue":{
"shape":"RetentionPeriodValue",
"documentation":"<p>The period value for which the retention rule is to retain resources. The period is measured using the unit specified for <b>RetentionPeriodUnit</b>.</p>"
},
"RetentionPeriodUnit":{
"shape":"RetentionPeriodUnit",
"documentation":"<p>The unit of time in which the retention period is measured. Currently, only <code>DAYS</code> is supported.</p>"
}
},
"documentation":"<p>Information about the retention period for which a retention rule is to retain resources.</p>"
},
"RetentionPeriodUnit":{
"type":"string",
"enum":["DAYS"]
},
"RetentionPeriodValue":{
"type":"integer",
"max":3650,
"min":1
},
"RuleArn":{
"type":"string",
"max":1011,
"min":0,
"pattern":"^arn:aws(-[a-z]{1,3}){0,2}:rbin:[a-z\\-0-9]{0,63}:[0-9]{12}:rule/[0-9a-zA-Z]{11}{0,1011}$"
},
"RuleIdentifier":{
"type":"string",
"pattern":"[0-9a-zA-Z]{11}"
},
"RuleStatus":{
"type":"string",
"enum":[
"pending",
"available"
]
},
"RuleSummary":{
"type":"structure",
"members":{
"Identifier":{
"shape":"RuleIdentifier",
"documentation":"<p>The unique ID of the retention rule.</p>"
},
"Description":{
"shape":"Description",
"documentation":"<p>The description for the retention rule.</p>"
},
"RetentionPeriod":{
"shape":"RetentionPeriod",
"documentation":"<p>Information about the retention period for which the retention rule retains resources</p>"
}
},
"documentation":"<p>Information about a Recycle Bin retention rule.</p>"
},
"RuleSummaryList":{
"type":"list",
"member":{"shape":"RuleSummary"}
},
"ServiceQuotaExceededException":{
"type":"structure",
"members":{
"Message":{"shape":"ErrorMessage"},
"Reason":{
"shape":"ServiceQuotaExceededExceptionReason",
"documentation":"<p>The reason for the exception.</p>"
}
},
"documentation":"<p>The request would cause a service quota for the number of tags per resource to be exceeded.</p>",
"error":{"httpStatusCode":402},
"exception":true
},
"ServiceQuotaExceededExceptionReason":{
"type":"string",
"enum":["SERVICE_QUOTA_EXCEEDED"]
},
"Tag":{
"type":"structure",
"required":[
"Key",
"Value"
],
"members":{
"Key":{
"shape":"TagKey",
"documentation":"<p>The tag key.</p>"
},
"Value":{
"shape":"TagValue",
"documentation":"<p>The tag value.</p>"
}
},
"documentation":"<p>Information about the tags assigned to a Recycle Bin retention rule.</p>"
},
"TagKey":{
"type":"string",
"max":128,
"min":1,
"pattern":"^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$"
},
"TagKeyList":{
"type":"list",
"member":{"shape":"TagKey"},
"max":200,
"min":0
},
"TagList":{
"type":"list",
"member":{"shape":"Tag"},
"max":200,
"min":0
},
"TagResourceRequest":{
"type":"structure",
"required":[
"ResourceArn",
"Tags"
],
"members":{
"ResourceArn":{
"shape":"RuleArn",
"documentation":"<p>The Amazon Resource Name (ARN) of the resource to which to assign the tags.</p>",
"location":"uri",
"locationName":"resourceArn"
},
"Tags":{
"shape":"TagList",
"documentation":"<p>Information about the tags to assign to the resource.</p>"
}
}
},
"TagResourceResponse":{
"type":"structure",
"members":{
}
},
"TagValue":{
"type":"string",
"max":256,
"min":0,
"pattern":"^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$"
},
"UntagResourceRequest":{
"type":"structure",
"required":[
"ResourceArn",
"TagKeys"
],
"members":{
"ResourceArn":{
"shape":"RuleArn",
"documentation":"<p>The Amazon Resource Name (ARN) of the resource from which to unassign the tags.</p>",
"location":"uri",
"locationName":"resourceArn"
},
"TagKeys":{
"shape":"TagKeyList",
"documentation":"<p>Information about the tags to unassign from the resource.</p>",
"location":"querystring",
"locationName":"tagKeys"
}
}
},
"UntagResourceResponse":{
"type":"structure",
"members":{
}
},
"UpdateRuleRequest":{
"type":"structure",
"required":["Identifier"],
"members":{
"Identifier":{
"shape":"RuleIdentifier",
"documentation":"<p>The unique ID of the retention rule to update.</p>",
"location":"uri",
"locationName":"identifier"
},
"RetentionPeriod":{
"shape":"RetentionPeriod",
"documentation":"<p>Information about the retention period for which the retention rule is to retain resources.</p>"
},
"Description":{
"shape":"Description",
"documentation":"<p>The retention rule description.</p>"
},
"ResourceType":{
"shape":"ResourceType",
"documentation":"<p>The resource type to be retained by the retention rule. Currently, only Amazon EBS snapshots are supported.</p>"
},
"ResourceTags":{
"shape":"ResourceTags",
"documentation":"<p>Information about the resource tags to use to identify resources that are to be retained by the retention rule. The retention rule retains only deleted snapshots that have one or more of the specified tag key and value pairs. If a snapshot is deleted, but it does not have any of the specified tag key and value pairs, it is immediately deleted without being retained by the retention rule. </p> <p>You can add the same tag key and value pair to a maximum or five retention rules.</p>"
}
}
},
"UpdateRuleResponse":{
"type":"structure",
"members":{
"Identifier":{
"shape":"RuleIdentifier",
"documentation":"<p>The unique ID of the retention rule.</p>"
},
"RetentionPeriod":{"shape":"RetentionPeriod"},
"Description":{
"shape":"Description",
"documentation":"<p>The retention rule description.</p>"
},
"ResourceType":{
"shape":"ResourceType",
"documentation":"<p>The resource type retained by the retention rule.</p>"
},
"ResourceTags":{
"shape":"ResourceTags",
"documentation":"<p>Information about the resource tags used to identify resources that are retained by the retention rule.</p>"
},
"Status":{
"shape":"RuleStatus",
"documentation":"<p>The state of the retention rule. Only retention rules that are in the <code>available</code> state retain snapshots.</p>"
}
}
},
"ValidationException":{
"type":"structure",
"members":{
"Message":{"shape":"ErrorMessage"},
"Reason":{
"shape":"ValidationExceptionReason",
"documentation":"<p>The reason for the exception.</p>"
}
},
"documentation":"<p>One or more of the parameters in the request is not valid.</p>",
"error":{"httpStatusCode":400},
"exception":true
},
"ValidationExceptionReason":{
"type":"string",
"enum":[
"INVALID_PAGE_TOKEN",
"INVALID_PARAMETER_VALUE"
]
}
},
"documentation":"<p>This is the <i>Recycle Bin API Reference</i>. This documentation provides descriptions and syntax for each of the actions and data types in Recycle Bin.</p> <p>Recycle Bin is a snapshot recovery feature that enables you to restore accidentally deleted snapshots. When using Recycle Bin, if your snapshots are deleted, they are retained in the Recycle Bin for a time period that you specify.</p> <p>You can restore a snapshot from the Recycle Bin at any time before its retention period expires. After you restore a snapshot from the Recycle Bin, the snapshot is removed from the Recycle Bin, and you can then use it in the same way you use any other snapshot in your account. If the retention period expires and the snapshot is not restored, the snapshot is permanently deleted from the Recycle Bin and is no longer available for recovery. For more information about Recycle Bin, see <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/snapshot-recycle-bin.html\"> Recycle Bin</a> in the <i>Amazon EC2 User Guide</i>.</p>"
}