Class: Aws::Imagebuilder::Types::CreateLifecyclePolicyRequest

Inherits:
Struct
  • Object
show all
Includes:
Structure
Defined in:
lib/aws-sdk-imagebuilder/types.rb

Overview

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#client_tokenString

Unique, case-sensitive identifier you provide to ensure idempotency of the request. For more information, see [Ensuring idempotency] in the *Amazon EC2 API Reference*.

**A suitable default value is auto-generated.** You should normally not need to pass this option.

[1]: docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html

Returns:

  • (String)


1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
# File 'lib/aws-sdk-imagebuilder/types.rb', line 1757

class CreateLifecyclePolicyRequest < Struct.new(
  :name,
  :description,
  :status,
  :execution_role,
  :resource_type,
  :policy_details,
  :resource_selection,
  :tags,
  :client_token)
  SENSITIVE = []
  include Aws::Structure
end

#descriptionString

Optional description for the lifecycle policy.

Returns:

  • (String)


1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
# File 'lib/aws-sdk-imagebuilder/types.rb', line 1757

class CreateLifecyclePolicyRequest < Struct.new(
  :name,
  :description,
  :status,
  :execution_role,
  :resource_type,
  :policy_details,
  :resource_selection,
  :tags,
  :client_token)
  SENSITIVE = []
  include Aws::Structure
end

#execution_roleString

The name or Amazon Resource Name (ARN) for the IAM role you create that grants Image Builder access to run lifecycle actions.

Returns:

  • (String)


1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
# File 'lib/aws-sdk-imagebuilder/types.rb', line 1757

class CreateLifecyclePolicyRequest < Struct.new(
  :name,
  :description,
  :status,
  :execution_role,
  :resource_type,
  :policy_details,
  :resource_selection,
  :tags,
  :client_token)
  SENSITIVE = []
  include Aws::Structure
end

#nameString

The name of the lifecycle policy to create.

Returns:

  • (String)


1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
# File 'lib/aws-sdk-imagebuilder/types.rb', line 1757

class CreateLifecyclePolicyRequest < Struct.new(
  :name,
  :description,
  :status,
  :execution_role,
  :resource_type,
  :policy_details,
  :resource_selection,
  :tags,
  :client_token)
  SENSITIVE = []
  include Aws::Structure
end

#policy_detailsArray<Types::LifecyclePolicyDetail>

Configuration details for the lifecycle policy rules.

Returns:



1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
# File 'lib/aws-sdk-imagebuilder/types.rb', line 1757

class CreateLifecyclePolicyRequest < Struct.new(
  :name,
  :description,
  :status,
  :execution_role,
  :resource_type,
  :policy_details,
  :resource_selection,
  :tags,
  :client_token)
  SENSITIVE = []
  include Aws::Structure
end

#resource_selectionTypes::LifecyclePolicyResourceSelection

Selection criteria for the resources that the lifecycle policy applies to.



1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
# File 'lib/aws-sdk-imagebuilder/types.rb', line 1757

class CreateLifecyclePolicyRequest < Struct.new(
  :name,
  :description,
  :status,
  :execution_role,
  :resource_type,
  :policy_details,
  :resource_selection,
  :tags,
  :client_token)
  SENSITIVE = []
  include Aws::Structure
end

#resource_typeString

The type of Image Builder resource that the lifecycle policy applies to.

Returns:

  • (String)


1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
# File 'lib/aws-sdk-imagebuilder/types.rb', line 1757

class CreateLifecyclePolicyRequest < Struct.new(
  :name,
  :description,
  :status,
  :execution_role,
  :resource_type,
  :policy_details,
  :resource_selection,
  :tags,
  :client_token)
  SENSITIVE = []
  include Aws::Structure
end

#statusString

Indicates whether the lifecycle policy resource is enabled.

Returns:

  • (String)


1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
# File 'lib/aws-sdk-imagebuilder/types.rb', line 1757

class CreateLifecyclePolicyRequest < Struct.new(
  :name,
  :description,
  :status,
  :execution_role,
  :resource_type,
  :policy_details,
  :resource_selection,
  :tags,
  :client_token)
  SENSITIVE = []
  include Aws::Structure
end

#tagsHash<String,String>

Tags to apply to the lifecycle policy resource.

Returns:

  • (Hash<String,String>)


1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
# File 'lib/aws-sdk-imagebuilder/types.rb', line 1757

class CreateLifecyclePolicyRequest < Struct.new(
  :name,
  :description,
  :status,
  :execution_role,
  :resource_type,
  :policy_details,
  :resource_selection,
  :tags,
  :client_token)
  SENSITIVE = []
  include Aws::Structure
end