CfnStackProps

class aws_cdk.aws_opsworks.CfnStackProps(*, agent_version=None, attributes=None, chef_configuration=None, clone_app_ids=None, clone_permissions=None, configuration_manager=None, custom_cookbooks_source=None, custom_json=None, default_availability_zone=None, default_instance_profile_arn, default_os=None, default_root_device_type=None, default_ssh_key_name=None, default_subnet_id=None, ecs_cluster_arn=None, elastic_ips=None, hostname_theme=None, name, rds_db_instances=None, service_role_arn, source_stack_id=None, tags=None, use_custom_cookbooks=None, use_opsworks_security_groups=None, vpc_id=None)

Bases: object

Properties for defining a AWS::OpsWorks::Stack.

Parameters
  • agent_version (Optional[str]) – AWS::OpsWorks::Stack.AgentVersion.

  • attributes (Union[IResolvable, Mapping[str, str], None]) – AWS::OpsWorks::Stack.Attributes.

  • chef_configuration (Union[IResolvable, ChefConfigurationProperty, None]) – AWS::OpsWorks::Stack.ChefConfiguration.

  • clone_app_ids (Optional[Sequence[str]]) – AWS::OpsWorks::Stack.CloneAppIds.

  • clone_permissions (Union[bool, IResolvable, None]) – AWS::OpsWorks::Stack.ClonePermissions.

  • configuration_manager (Union[IResolvable, StackConfigurationManagerProperty, None]) – AWS::OpsWorks::Stack.ConfigurationManager.

  • custom_cookbooks_source (Union[IResolvable, SourceProperty, None]) – AWS::OpsWorks::Stack.CustomCookbooksSource.

  • custom_json (Optional[Any]) – AWS::OpsWorks::Stack.CustomJson.

  • default_availability_zone (Optional[str]) – AWS::OpsWorks::Stack.DefaultAvailabilityZone.

  • default_instance_profile_arn (str) – AWS::OpsWorks::Stack.DefaultInstanceProfileArn.

  • default_os (Optional[str]) – AWS::OpsWorks::Stack.DefaultOs.

  • default_root_device_type (Optional[str]) – AWS::OpsWorks::Stack.DefaultRootDeviceType.

  • default_ssh_key_name (Optional[str]) – AWS::OpsWorks::Stack.DefaultSshKeyName.

  • default_subnet_id (Optional[str]) – AWS::OpsWorks::Stack.DefaultSubnetId.

  • ecs_cluster_arn (Optional[str]) – AWS::OpsWorks::Stack.EcsClusterArn.

  • elastic_ips (Union[IResolvable, Sequence[Union[IResolvable, ElasticIpProperty]], None]) – AWS::OpsWorks::Stack.ElasticIps.

  • hostname_theme (Optional[str]) – AWS::OpsWorks::Stack.HostnameTheme.

  • name (str) – AWS::OpsWorks::Stack.Name.

  • rds_db_instances (Union[IResolvable, Sequence[Union[IResolvable, RdsDbInstanceProperty]], None]) – AWS::OpsWorks::Stack.RdsDbInstances.

  • service_role_arn (str) – AWS::OpsWorks::Stack.ServiceRoleArn.

  • source_stack_id (Optional[str]) – AWS::OpsWorks::Stack.SourceStackId.

  • tags (Optional[Sequence[CfnTag]]) – AWS::OpsWorks::Stack.Tags.

  • use_custom_cookbooks (Union[bool, IResolvable, None]) – AWS::OpsWorks::Stack.UseCustomCookbooks.

  • use_opsworks_security_groups (Union[bool, IResolvable, None]) – AWS::OpsWorks::Stack.UseOpsworksSecurityGroups.

  • vpc_id (Optional[str]) – AWS::OpsWorks::Stack.VpcId.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-stack.html

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_opsworks as opsworks

# custom_json is of type object

cfn_stack_props = opsworks.CfnStackProps(
    default_instance_profile_arn="defaultInstanceProfileArn",
    name="name",
    service_role_arn="serviceRoleArn",

    # the properties below are optional
    agent_version="agentVersion",
    attributes={
        "attributes_key": "attributes"
    },
    chef_configuration=opsworks.CfnStack.ChefConfigurationProperty(
        berkshelf_version="berkshelfVersion",
        manage_berkshelf=False
    ),
    clone_app_ids=["cloneAppIds"],
    clone_permissions=False,
    configuration_manager=opsworks.CfnStack.StackConfigurationManagerProperty(
        name="name",
        version="version"
    ),
    custom_cookbooks_source=opsworks.CfnStack.SourceProperty(
        password="password",
        revision="revision",
        ssh_key="sshKey",
        type="type",
        url="url",
        username="username"
    ),
    custom_json=custom_json,
    default_availability_zone="defaultAvailabilityZone",
    default_os="defaultOs",
    default_root_device_type="defaultRootDeviceType",
    default_ssh_key_name="defaultSshKeyName",
    default_subnet_id="defaultSubnetId",
    ecs_cluster_arn="ecsClusterArn",
    elastic_ips=[opsworks.CfnStack.ElasticIpProperty(
        ip="ip",

        # the properties below are optional
        name="name"
    )],
    hostname_theme="hostnameTheme",
    rds_db_instances=[opsworks.CfnStack.RdsDbInstanceProperty(
        db_password="dbPassword",
        db_user="dbUser",
        rds_db_instance_arn="rdsDbInstanceArn"
    )],
    source_stack_id="sourceStackId",
    tags=[CfnTag(
        key="key",
        value="value"
    )],
    use_custom_cookbooks=False,
    use_opsworks_security_groups=False,
    vpc_id="vpcId"
)

Attributes

agent_version

AWS::OpsWorks::Stack.AgentVersion.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-stack.html#cfn-opsworks-stack-agentversion

Return type

Optional[str]

attributes

AWS::OpsWorks::Stack.Attributes.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-stack.html#cfn-opsworks-stack-attributes

Return type

Union[IResolvable, Mapping[str, str], None]

chef_configuration

AWS::OpsWorks::Stack.ChefConfiguration.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-stack.html#cfn-opsworks-stack-chefconfiguration

Return type

Union[IResolvable, ChefConfigurationProperty, None]

clone_app_ids

AWS::OpsWorks::Stack.CloneAppIds.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-stack.html#cfn-opsworks-stack-cloneappids

Return type

Optional[List[str]]

clone_permissions

AWS::OpsWorks::Stack.ClonePermissions.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-stack.html#cfn-opsworks-stack-clonepermissions

Return type

Union[bool, IResolvable, None]

configuration_manager

AWS::OpsWorks::Stack.ConfigurationManager.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-stack.html#cfn-opsworks-stack-configmanager

Return type

Union[IResolvable, StackConfigurationManagerProperty, None]

custom_cookbooks_source

AWS::OpsWorks::Stack.CustomCookbooksSource.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-stack.html#cfn-opsworks-stack-custcookbooksource

Return type

Union[IResolvable, SourceProperty, None]

custom_json

AWS::OpsWorks::Stack.CustomJson.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-stack.html#cfn-opsworks-stack-custjson

Return type

Any

default_availability_zone

AWS::OpsWorks::Stack.DefaultAvailabilityZone.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-stack.html#cfn-opsworks-stack-defaultaz

Return type

Optional[str]

default_instance_profile_arn

AWS::OpsWorks::Stack.DefaultInstanceProfileArn.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-stack.html#cfn-opsworks-stack-defaultinstanceprof

Return type

str

default_os

AWS::OpsWorks::Stack.DefaultOs.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-stack.html#cfn-opsworks-stack-defaultos

Return type

Optional[str]

default_root_device_type

AWS::OpsWorks::Stack.DefaultRootDeviceType.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-stack.html#cfn-opsworks-stack-defaultrootdevicetype

Return type

Optional[str]

default_ssh_key_name

AWS::OpsWorks::Stack.DefaultSshKeyName.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-stack.html#cfn-opsworks-stack-defaultsshkeyname

Return type

Optional[str]

default_subnet_id

AWS::OpsWorks::Stack.DefaultSubnetId.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-stack.html#defaultsubnet

Return type

Optional[str]

ecs_cluster_arn

AWS::OpsWorks::Stack.EcsClusterArn.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-stack.html#cfn-opsworks-stack-ecsclusterarn

Return type

Optional[str]

elastic_ips

AWS::OpsWorks::Stack.ElasticIps.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-stack.html#cfn-opsworks-stack-elasticips

Return type

Union[IResolvable, List[Union[IResolvable, ElasticIpProperty]], None]

hostname_theme

AWS::OpsWorks::Stack.HostnameTheme.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-stack.html#cfn-opsworks-stack-hostnametheme

Return type

Optional[str]

name

AWS::OpsWorks::Stack.Name.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-stack.html#cfn-opsworks-stack-name

Return type

str

rds_db_instances

AWS::OpsWorks::Stack.RdsDbInstances.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-stack.html#cfn-opsworks-stack-rdsdbinstances

Return type

Union[IResolvable, List[Union[IResolvable, RdsDbInstanceProperty]], None]

service_role_arn

AWS::OpsWorks::Stack.ServiceRoleArn.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-stack.html#cfn-opsworks-stack-servicerolearn

Return type

str

source_stack_id

AWS::OpsWorks::Stack.SourceStackId.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-stack.html#cfn-opsworks-stack-sourcestackid

Return type

Optional[str]

tags

AWS::OpsWorks::Stack.Tags.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-stack.html#cfn-opsworks-stack-tags

Return type

Optional[List[CfnTag]]

use_custom_cookbooks

AWS::OpsWorks::Stack.UseCustomCookbooks.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-stack.html#usecustcookbooks

Return type

Union[bool, IResolvable, None]

use_opsworks_security_groups

AWS::OpsWorks::Stack.UseOpsworksSecurityGroups.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-stack.html#cfn-opsworks-stack-useopsworkssecuritygroups

Return type

Union[bool, IResolvable, None]

vpc_id

AWS::OpsWorks::Stack.VpcId.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-stack.html#cfn-opsworks-stack-vpcid

Return type

Optional[str]