[][src]Struct rusoto_opsworks::CloneStackRequest

pub struct CloneStackRequest {
    pub agent_version: Option<String>,
    pub attributes: Option<HashMap<String, String>>,
    pub chef_configuration: Option<ChefConfiguration>,
    pub clone_app_ids: Option<Vec<String>>,
    pub clone_permissions: Option<bool>,
    pub configuration_manager: Option<StackConfigurationManager>,
    pub custom_cookbooks_source: Option<Source>,
    pub custom_json: Option<String>,
    pub default_availability_zone: Option<String>,
    pub default_instance_profile_arn: Option<String>,
    pub default_os: Option<String>,
    pub default_root_device_type: Option<String>,
    pub default_ssh_key_name: Option<String>,
    pub default_subnet_id: Option<String>,
    pub hostname_theme: Option<String>,
    pub name: Option<String>,
    pub region: Option<String>,
    pub service_role_arn: String,
    pub source_stack_id: String,
    pub use_custom_cookbooks: Option<bool>,
    pub use_opsworks_security_groups: Option<bool>,
    pub vpc_id: Option<String>,
}

Fields

agent_version: Option<String>

The default AWS OpsWorks Stacks agent version. You have the following options:

The default setting is LATEST. To specify an agent version, you must use the complete version number, not the abbreviated number shown on the console. For a list of available agent version numbers, call DescribeAgentVersions. AgentVersion cannot be set to Chef 12.2.

You can also specify an agent version when you create or update an instance, which overrides the stack's default setting.

attributes: Option<HashMap<String, String>>

A list of stack attributes and values as key/value pairs to be added to the cloned stack.

chef_configuration: Option<ChefConfiguration>

A ChefConfiguration object that specifies whether to enable Berkshelf and the Berkshelf version on Chef 11.10 stacks. For more information, see Create a New Stack.

clone_app_ids: Option<Vec<String>>

A list of source stack app IDs to be included in the cloned stack.

clone_permissions: Option<bool>

Whether to clone the source stack's permissions.

configuration_manager: Option<StackConfigurationManager>

The configuration manager. When you clone a stack we recommend that you use the configuration manager to specify the Chef version: 12, 11.10, or 11.4 for Linux stacks, or 12.2 for Windows stacks. The default value for Linux stacks is currently 12.

custom_cookbooks_source: Option<Source>custom_json: Option<String>

A string that contains user-defined, custom JSON. It is used to override the corresponding default stack configuration JSON values. The string should be in the following format:

"{\"key1\": \"value1\", \"key2\": \"value2\",...}"

For more information about custom JSON, see Use Custom JSON to Modify the Stack Configuration Attributes

default_availability_zone: Option<String>

The cloned stack's default Availability Zone, which must be in the specified region. For more information, see Regions and Endpoints. If you also specify a value for DefaultSubnetId, the subnet must be in the same zone. For more information, see the VpcId parameter description.

default_instance_profile_arn: Option<String>

The Amazon Resource Name (ARN) of an IAM profile that is the default profile for all of the stack's EC2 instances. For more information about IAM ARNs, see Using Identifiers.

default_os: Option<String>

The stack's operating system, which must be set to one of the following.

The default option is the parent stack's operating system. For more information about supported operating systems, see AWS OpsWorks Stacks Operating Systems.

You can specify a different Linux operating system for the cloned stack, but you cannot change from Linux to Windows or Windows to Linux.

default_root_device_type: Option<String>

The default root device type. This value is used by default for all instances in the cloned stack, but you can override it when you create an instance. For more information, see Storage for the Root Device.

default_ssh_key_name: Option<String>

A default Amazon EC2 key pair name. The default value is none. If you specify a key pair name, AWS OpsWorks installs the public key on the instance and you can use the private key with an SSH client to log in to the instance. For more information, see Using SSH to Communicate with an Instance and Managing SSH Access. You can override this setting by specifying a different key pair, or no key pair, when you create an instance.

default_subnet_id: Option<String>

The stack's default VPC subnet ID. This parameter is required if you specify a value for the VpcId parameter. All instances are launched into this subnet unless you specify otherwise when you create the instance. If you also specify a value for DefaultAvailabilityZone, the subnet must be in that zone. For information on default values and when this parameter is required, see the VpcId parameter description.

hostname_theme: Option<String>

The stack's host name theme, with spaces are replaced by underscores. The theme is used to generate host names for the stack's instances. By default, HostnameTheme is set to Layer_Dependent, which creates host names by appending integers to the layer's short name. The other themes are:

To obtain a generated host name, call GetHostNameSuggestion, which returns a host name based on the current theme.

name: Option<String>

The cloned stack name.

region: Option<String>

The cloned stack AWS region, such as "ap-northeast-2". For more information about AWS regions, see Regions and Endpoints.

service_role_arn: String

The stack AWS Identity and Access Management (IAM) role, which allows AWS OpsWorks Stacks to work with AWS resources on your behalf. You must set this parameter to the Amazon Resource Name (ARN) for an existing IAM role. If you create a stack by using the AWS OpsWorks Stacks console, it creates the role for you. You can obtain an existing stack's IAM ARN programmatically by calling DescribePermissions. For more information about IAM ARNs, see Using Identifiers.

You must set this parameter to a valid service role ARN or the action will fail; there is no default value. You can specify the source stack's service role ARN, if you prefer, but you must do so explicitly.

source_stack_id: String

The source stack ID.

use_custom_cookbooks: Option<bool>

Whether to use custom cookbooks.

use_opsworks_security_groups: Option<bool>

Whether to associate the AWS OpsWorks Stacks built-in security groups with the stack's layers.

AWS OpsWorks Stacks provides a standard set of built-in security groups, one for each layer, which are associated with layers by default. With UseOpsworksSecurityGroups you can instead provide your own custom security groups. UseOpsworksSecurityGroups has the following settings:

For more information, see Create a New Stack.

vpc_id: Option<String>

The ID of the VPC that the cloned stack is to be launched into. It must be in the specified region. All instances are launched into this VPC, and you cannot change the ID later.

If the VPC ID corresponds to a default VPC and you have specified either the DefaultAvailabilityZone or the DefaultSubnetId parameter only, AWS OpsWorks Stacks infers the value of the other parameter. If you specify neither parameter, AWS OpsWorks Stacks sets these parameters to the first valid Availability Zone for the specified region and the corresponding default VPC subnet ID, respectively.

If you specify a nondefault VPC ID, note the following:

For more information about how to use AWS OpsWorks Stacks with a VPC, see Running a Stack in a VPC. For more information about default VPC and EC2 Classic, see Supported Platforms.

Trait Implementations

impl PartialEq<CloneStackRequest> for CloneStackRequest[src]

impl Default for CloneStackRequest[src]

impl Clone for CloneStackRequest[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for CloneStackRequest[src]

impl Serialize for CloneStackRequest[src]

Auto Trait Implementations

impl Send for CloneStackRequest

impl Sync for CloneStackRequest

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T

impl<T> Same for T

type Output = T

Should always be Self