{"note":"OpenAPI conversion -- returning structured metadata","name":"amazonaws-com-dlm","description":"Amazon Data Lifecycle Manager","version":"2018-01-12","base_url":"","endpoints":8,"raw":"@lap v0.3\n# Machine-readable API spec. Each @endpoint block is one API call.\n@api Amazon Data Lifecycle Manager\n@version 2018-01-12\n@auth AWS SigV4\n@endpoints 8\n@toc policies(5), tags(3)\n\n@group policies\n@endpoint POST /policies\n@desc Creates an Amazon Data Lifecycle Manager lifecycle policy. Amazon Data Lifecycle Manager supports the following policy types:   Custom EBS snapshot policy   Custom EBS-backed AMI policy   Cross-account copy event policy   Default policy for EBS snapshots   Default policy for EBS-backed AMIs   For more information, see  Default policies vs custom policies.  If you create a default policy, you can specify the request parameters either in the request body, or in the PolicyDetails request structure, but not both.\n@required {ExecutionRoleArn: str, Description: str, State: str}\n@optional {PolicyDetails: PolicyDetails, Tags: map<str,str>, DefaultPolicy: str, CreateInterval: int, RetainInterval: int, CopyTags: bool, ExtendDeletion: bool, CrossRegionCopyTargets: [CrossRegionCopyTarget], Exclusions: Exclusions}\n@returns(200) {PolicyId: str?}\n\n@endpoint DELETE /policies/{policyId}\n@desc Deletes the specified lifecycle policy and halts the automated operations that the policy specified. For more information about deleting a policy, see Delete lifecycle policies.\n@required {PolicyId: str}\n\n@endpoint GET /policies\n@desc Gets summary information about all or the specified data lifecycle policies. To get complete information about a policy, use GetLifecyclePolicy.\n@optional {policyIds: [str], state: str, resourceTypes: [str], targetTags: [str], tagsToAdd: [str], defaultPolicyType: str}\n@returns(200) {Policies: [LifecyclePolicySummary]?}\n\n@endpoint GET /policies/{policyId}\n@desc Gets detailed information about the specified lifecycle policy.\n@required {PolicyId: str}\n@returns(200) {Policy: LifecyclePolicy?{PolicyId: str?, Description: str?, State: str?, StatusMessage: str?, ExecutionRoleArn: str?, DateCreated: str(timestamp)?, DateModified: str(timestamp)?, PolicyDetails: PolicyDetails?{PolicyType: str?, ResourceTypes: [str]?, ResourceLocations: [str]?, TargetTags: [Tag]?, Schedules: [Schedule]?, Parameters: Parameters?{ExcludeBootVolume: bool?, NoReboot: bool?, ExcludeDataVolumeTags: [Tag]?}, EventSource: EventSource?{Type: str, Parameters: EventParameters?}, Actions: [Action]?, PolicyLanguage: str?, ResourceType: str?, CreateInterval: int?, RetainInterval: int?, CopyTags: bool?, CrossRegionCopyTargets: [CrossRegionCopyTarget]?, ExtendDeletion: bool?, Exclusions: Exclusions?{ExcludeBootVolumes: bool?, ExcludeVolumeTypes: [str]?, ExcludeTags: [Tag]?}}, Tags: map<str,str>?, PolicyArn: str?, DefaultPolicy: bool?}}\n\n@endgroup\n\n@group tags\n@endpoint GET /tags/{resourceArn}\n@desc Lists the tags for the specified resource.\n@required {ResourceArn: str}\n@returns(200) {Tags: map<str,str>?}\n\n@endpoint POST /tags/{resourceArn}\n@desc Adds the specified tags to the specified resource.\n@required {ResourceArn: str, Tags: map<str,str>}\n\n@endpoint DELETE /tags/{resourceArn}\n@desc Removes the specified tags from the specified resource.\n@required {ResourceArn: str, tagKeys: [str]}\n\n@endgroup\n\n@group policies\n@endpoint PATCH /policies/{policyId}\n@desc Updates the specified lifecycle policy. For more information about updating a policy, see Modify lifecycle policies.\n@required {PolicyId: str}\n@optional {ExecutionRoleArn: str, State: str, Description: str, PolicyDetails: PolicyDetails, CreateInterval: int, RetainInterval: int, CopyTags: bool, ExtendDeletion: bool, CrossRegionCopyTargets: [CrossRegionCopyTarget], Exclusions: Exclusions}\n\n@endgroup\n\n@end\n"}