{"files":{"SKILL.md":"---\nname: amazon-data-lifecycle-manager\ndescription: \"Amazon Data Lifecycle Manager API skill. Use when working with Amazon Data Lifecycle Manager for policies, tags. Covers 8 endpoints.\"\nversion: 1.0.0\ngenerator: lapsh\n---\n\n# Amazon Data Lifecycle Manager\nAPI version: 2018-01-12\n\n## Auth\nAWS SigV4\n\n## Base URL\nNot specified.\n\n## Setup\n1. Configure auth: AWS SigV4\n2. GET /policies -- gets summary information about all or the specified data lifecycle policies. to get complete information about a policy, use getlifecyclepolicy.\n3. POST /policies -- create first policy\n\n## Endpoints\n8 endpoints across 2 groups. See references/api-spec.lap for full details.\n\n### Policies\n| Method | Path | Description |\n|--------|------|-------------|\n| POST | /policies | 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| DELETE | /policies/{policyId} | 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| GET | /policies | Gets summary information about all or the specified data lifecycle policies. To get complete information about a policy, use GetLifecyclePolicy. |\n| GET | /policies/{policyId} | Gets detailed information about the specified lifecycle policy. |\n| PATCH | /policies/{policyId} | Updates the specified lifecycle policy. For more information about updating a policy, see Modify lifecycle policies. |\n\n### Tags\n| Method | Path | Description |\n|--------|------|-------------|\n| GET | /tags/{resourceArn} | Lists the tags for the specified resource. |\n| POST | /tags/{resourceArn} | Adds the specified tags to the specified resource. |\n| DELETE | /tags/{resourceArn} | Removes the specified tags from the specified resource. |\n\n## Common Questions\nMatch user requests to endpoints in references/api-spec.lap. Key patterns:\n- \"Create a policy?\" -> POST /policies\n- \"Delete a policy?\" -> DELETE /policies/{policyId}\n- \"List all policies?\" -> GET /policies\n- \"Get policy details?\" -> GET /policies/{policyId}\n- \"Get tag details?\" -> GET /tags/{resourceArn}\n- \"Delete a tag?\" -> DELETE /tags/{resourceArn}\n- \"Partially update a policy?\" -> PATCH /policies/{policyId}\n- \"How to authenticate?\" -> See Auth section above\n\n## Response Tips\n- Check response schemas in references/api-spec.lap for field details\n- Create/update endpoints return the modified resource on success\n\n## References\n- Full spec: See references/api-spec.lap for complete endpoint details, parameter tables, and response schemas\n\n> Generated from the official API spec by [LAP](https://lap.sh)\n","references/api-spec.lap":"@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>?: any, 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"}}