import * as core from "@terrascript/core"; export interface CustomCookbooksSourceArgs extends core.SchemaArgs { password?: string | core.StringOut; revision?: string | core.StringOut; sshKey?: string | core.StringOut; type: string | core.StringOut; url: string | core.StringOut; username?: string | core.StringOut; } export class CustomCookbooksSource extends core.Schema { @core.attr(String) public password?: string | core.StringOut; @core.attr(String) public revision?: string | core.StringOut; @core.attr(String) public sshKey?: string | core.StringOut; @core.attr(String) public type!: string | core.StringOut; @core.attr(String) public url!: string | core.StringOut; @core.attr(String) public username?: string | core.StringOut; } export interface StackArgs extends core.ResourceArgs { /** * (Optional) If set to `"LATEST"`, OpsWorks will automatically install the latest version. */ agentVersion?: string | core.StringOut; /** * (Optional) If `manage_berkshelf` is enabled, the version of Berkshelf to use. */ berkshelfVersion?: string | core.StringOut; /** * (Optional) Color to paint next to the stack's resources in the OpsWorks console. */ color?: string | core.StringOut; /** * (Optional) Name of the configuration manager to use. Defaults to "Chef". */ configurationManagerName?: string | core.StringOut; /** * (Optional) Version of the configuration manager to use. Defaults to "11.4". */ configurationManagerVersion?: string | core.StringOut; /** * (Optional) When `use_custom_cookbooks` is set, provide this sub-object as */ customCookbooksSource?: CustomCookbooksSource; /** * (Optional) User defined JSON passed to "Chef". Use a "here doc" for multiline JSON. */ customJson?: string | core.StringOut; /** * (Optional) Name of the availability zone where instances will be created */ defaultAvailabilityZone?: string | core.StringOut; /** * (Required) The ARN of an IAM Instance Profile that created instances */ defaultInstanceProfileArn: string | core.StringOut; /** * (Optional) Name of OS that will be installed on instances by default. */ defaultOs?: string | core.StringOut; /** * (Optional) Name of the type of root device instances will have by default. */ defaultRootDeviceType?: string | core.StringOut; /** * (Optional) Name of the SSH keypair that instances will have by default. */ defaultSshKeyName?: string | core.StringOut; /** * (Optional) Id of the subnet in which instances will be created by default. Mandatory */ defaultSubnetId?: string | core.StringOut; /** * (Optional) Keyword representing the naming scheme that will be used for instance hostnames */ hostnameTheme?: string | core.StringOut; /** * (Optional) Boolean value controlling whether Opsworks will run Berkshelf for this stack. */ manageBerkshelf?: boolean | core.BooleanOut; /** * (Required) The name of the stack. */ name: string | core.StringOut; /** * (Required) The name of the region where the stack will exist. */ region: string | core.StringOut; /** * (Required) The ARN of an IAM role that the OpsWorks service will act as. */ serviceRoleArn: string | core.StringOut; /** * (Optional) A map of tags to assign to the resource. If configured with a provider [`default_tags` co * nfiguration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-co * nfiguration-block) present, tags with matching keys will overwrite those defined at the provider-lev * el. */ tags?: core.Map | core.MapOut; /** * A map of tags assigned to the resource, including those inherited from the provider [`default_tags` * configuration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags- * configuration-block). */ tagsAll?: core.Map | core.MapOut; /** * (Optional) Boolean value controlling whether the custom cookbook settings are */ useCustomCookbooks?: boolean | core.BooleanOut; /** * (Optional) Boolean value controlling whether the standard OpsWorks */ useOpsworksSecurityGroups?: boolean | core.BooleanOut; /** * (Optional) The id of the VPC that this stack belongs to. */ vpcId?: string | core.StringOut; } export class Stack extends core.Resource { /** * (Optional) If set to `"LATEST"`, OpsWorks will automatically install the latest version. */ @core.attr(String, { computed: true }) public agentVersion?: string | core.StringOut; @core.attr(String, { computed: true }) public arn!: string | core.StringOut; /** * (Optional) If `manage_berkshelf` is enabled, the version of Berkshelf to use. */ @core.attr(String) public berkshelfVersion?: string | core.StringOut; /** * (Optional) Color to paint next to the stack's resources in the OpsWorks console. */ @core.attr(String) public color?: string | core.StringOut; /** * (Optional) Name of the configuration manager to use. Defaults to "Chef". */ @core.attr(String) public configurationManagerName?: string | core.StringOut; /** * (Optional) Version of the configuration manager to use. Defaults to "11.4". */ @core.attr(String) public configurationManagerVersion?: string | core.StringOut; /** * (Optional) When `use_custom_cookbooks` is set, provide this sub-object as */ @core.attr(CustomCookbooksSource, { computed: true }) public customCookbooksSource?: CustomCookbooksSource; /** * (Optional) User defined JSON passed to "Chef". Use a "here doc" for multiline JSON. */ @core.attr(String) public customJson?: string | core.StringOut; /** * (Optional) Name of the availability zone where instances will be created */ @core.attr(String, { computed: true }) public defaultAvailabilityZone?: string | core.StringOut; /** * (Required) The ARN of an IAM Instance Profile that created instances */ @core.attr(String) public defaultInstanceProfileArn!: string | core.StringOut; /** * (Optional) Name of OS that will be installed on instances by default. */ @core.attr(String) public defaultOs?: string | core.StringOut; /** * (Optional) Name of the type of root device instances will have by default. */ @core.attr(String) public defaultRootDeviceType?: string | core.StringOut; /** * (Optional) Name of the SSH keypair that instances will have by default. */ @core.attr(String) public defaultSshKeyName?: string | core.StringOut; /** * (Optional) Id of the subnet in which instances will be created by default. Mandatory */ @core.attr(String, { computed: true }) public defaultSubnetId?: string | core.StringOut; /** * (Optional) Keyword representing the naming scheme that will be used for instance hostnames */ @core.attr(String) public hostnameTheme?: string | core.StringOut; /** * The id of the stack. */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Optional) Boolean value controlling whether Opsworks will run Berkshelf for this stack. */ @core.attr(Boolean) public manageBerkshelf?: boolean | core.BooleanOut; /** * (Required) The name of the stack. */ @core.attr(String) public name!: string | core.StringOut; /** * (Required) The name of the region where the stack will exist. */ @core.attr(String) public region!: string | core.StringOut; /** * (Required) The ARN of an IAM role that the OpsWorks service will act as. */ @core.attr(String) public serviceRoleArn!: string | core.StringOut; @core.attr(String, { computed: true }) public stackEndpoint!: string | core.StringOut; /** * (Optional) A map of tags to assign to the resource. If configured with a provider [`default_tags` co * nfiguration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-co * nfiguration-block) present, tags with matching keys will overwrite those defined at the provider-lev * el. */ @core.attr(String, { kind: "map" }) public tags?: core.Map | core.MapOut; /** * A map of tags assigned to the resource, including those inherited from the provider [`default_tags` * configuration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags- * configuration-block). */ @core.attr(String, { computed: true, kind: "map" }) public tagsAll?: core.Map | core.MapOut; /** * (Optional) Boolean value controlling whether the custom cookbook settings are */ @core.attr(Boolean) public useCustomCookbooks?: boolean | core.BooleanOut; /** * (Optional) Boolean value controlling whether the standard OpsWorks */ @core.attr(Boolean) public useOpsworksSecurityGroups?: boolean | core.BooleanOut; /** * (Optional) The id of the VPC that this stack belongs to. */ @core.attr(String, { computed: true }) public vpcId?: string | core.StringOut; constructor(name: string, args?: StackArgs) { super(name, "aws_opsworks_stack", args); } public override getNamespace(): string { return "aws_opsworks"; } }