When passing CreateLifecyclePolicyRequest as input to an Aws::Client method, you can use a vanilla Hash:
{
execution_role_arn: "ExecutionRoleArn", description: "PolicyDescription", state: "ENABLED", policy_details: { policy_type: "EBS_SNAPSHOT_MANAGEMENT", resource_types: ["VOLUME"], target_tags: [
{
key: "String", value: "String", },
],
schedules: [
{
name: "ScheduleName",
copy_tags: false,
tags_to_add: [
{
key: "String", value: "String", },
],
variable_tags: [
{
key: "String", value: "String", },
],
create_rule: {
interval: 1,
interval_unit: "HOURS", times: ["Time"],
cron_expression: "CronExpression",
},
retain_rule: {
count: 1,
interval: 1,
interval_unit: "DAYS", },
fast_restore_rule: {
count: 1,
interval: 1,
interval_unit: "DAYS", availability_zones: ["AvailabilityZone"], },
cross_region_copy_rules: [
{
target_region: "TargetRegion", encrypted: false, cmk_arn: "CmkArn",
copy_tags: false,
retain_rule: {
interval: 1,
interval_unit: "DAYS", },
},
],
},
],
parameters: {
exclude_boot_volume: false,
no_reboot: false,
},
},
tags: {
"TagKey" => "TagValue",
},
}
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4