amazonka-opsworks-2.0: Amazon OpsWorks SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.OpsWorks.Types.Layer

Description

 
Synopsis

Documentation

data Layer Source #

Describes a layer.

See: newLayer smart constructor.

Constructors

Layer' 

Fields

Instances

Instances details
FromJSON Layer Source # 
Instance details

Defined in Amazonka.OpsWorks.Types.Layer

Generic Layer Source # 
Instance details

Defined in Amazonka.OpsWorks.Types.Layer

Associated Types

type Rep Layer :: Type -> Type #

Methods

from :: Layer -> Rep Layer x #

to :: Rep Layer x -> Layer #

Read Layer Source # 
Instance details

Defined in Amazonka.OpsWorks.Types.Layer

Show Layer Source # 
Instance details

Defined in Amazonka.OpsWorks.Types.Layer

Methods

showsPrec :: Int -> Layer -> ShowS #

show :: Layer -> String #

showList :: [Layer] -> ShowS #

NFData Layer Source # 
Instance details

Defined in Amazonka.OpsWorks.Types.Layer

Methods

rnf :: Layer -> () #

Eq Layer Source # 
Instance details

Defined in Amazonka.OpsWorks.Types.Layer

Methods

(==) :: Layer -> Layer -> Bool #

(/=) :: Layer -> Layer -> Bool #

Hashable Layer Source # 
Instance details

Defined in Amazonka.OpsWorks.Types.Layer

Methods

hashWithSalt :: Int -> Layer -> Int #

hash :: Layer -> Int #

type Rep Layer Source # 
Instance details

Defined in Amazonka.OpsWorks.Types.Layer

type Rep Layer = D1 ('MetaData "Layer" "Amazonka.OpsWorks.Types.Layer" "amazonka-opsworks-2.0-7XrzSD2vbuN9lVUGWMVZ7S" 'False) (C1 ('MetaCons "Layer'" 'PrefixI 'True) ((((S1 ('MetaSel ('Just "arn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "attributes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap LayerAttributesKeys (Maybe Text))))) :*: (S1 ('MetaSel ('Just "autoAssignElasticIps") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: (S1 ('MetaSel ('Just "autoAssignPublicIps") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "cloudWatchLogsConfiguration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe CloudWatchLogsConfiguration))))) :*: ((S1 ('MetaSel ('Just "createdAt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "customInstanceProfileArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "customJson") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: (S1 ('MetaSel ('Just "customRecipes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Recipes)) :*: (S1 ('MetaSel ('Just "customSecurityGroupIds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])) :*: S1 ('MetaSel ('Just "defaultRecipes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Recipes)))))) :*: (((S1 ('MetaSel ('Just "defaultSecurityGroupNames") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])) :*: (S1 ('MetaSel ('Just "enableAutoHealing") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "installUpdatesOnBoot") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)))) :*: (S1 ('MetaSel ('Just "layerId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "lifecycleEventConfiguration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe LifecycleEventConfiguration)) :*: S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))) :*: ((S1 ('MetaSel ('Just "packages") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])) :*: (S1 ('MetaSel ('Just "shortname") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "stackId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: (S1 ('MetaSel ('Just "type'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe LayerType)) :*: (S1 ('MetaSel ('Just "useEbsOptimizedInstances") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "volumeConfigurations") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [VolumeConfiguration]))))))))

newLayer :: Layer Source #

Create a value of Layer with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:arn:Layer', layer_arn - The Amazon Resource Number (ARN) of a layer.

$sel:attributes:Layer', layer_attributes - The layer attributes.

For the HaproxyStatsPassword, MysqlRootPassword, and GangliaPassword attributes, AWS OpsWorks Stacks returns *****FILTERED***** instead of the actual value

For an ECS Cluster layer, AWS OpsWorks Stacks the EcsClusterArn attribute is set to the cluster's ARN.

$sel:autoAssignElasticIps:Layer', layer_autoAssignElasticIps - Whether to automatically assign an Elastic IP address to the layer's instances. For more information, see How to Edit a Layer.

$sel:autoAssignPublicIps:Layer', layer_autoAssignPublicIps - For stacks that are running in a VPC, whether to automatically assign a public IP address to the layer's instances. For more information, see How to Edit a Layer.

$sel:cloudWatchLogsConfiguration:Layer', layer_cloudWatchLogsConfiguration - The Amazon CloudWatch Logs configuration settings for the layer.

$sel:createdAt:Layer', layer_createdAt - Date when the layer was created.

$sel:customInstanceProfileArn:Layer', layer_customInstanceProfileArn - The ARN of the default IAM profile to be used for the layer's EC2 instances. For more information about IAM ARNs, see Using Identifiers.

$sel:customJson:Layer', layer_customJson - A JSON formatted string containing the layer's custom stack configuration and deployment attributes.

$sel:customRecipes:Layer', layer_customRecipes - A LayerCustomRecipes object that specifies the layer's custom recipes.

$sel:customSecurityGroupIds:Layer', layer_customSecurityGroupIds - An array containing the layer's custom security group IDs.

$sel:defaultRecipes:Layer', layer_defaultRecipes - AWS OpsWorks Stacks supports five lifecycle events: setup, configuration, deploy, undeploy, and shutdown. For each layer, AWS OpsWorks Stacks runs a set of standard recipes for each event. You can also provide custom recipes for any or all layers and events. AWS OpsWorks Stacks runs custom event recipes after the standard recipes. LayerCustomRecipes specifies the custom recipes for a particular layer to be run in response to each of the five events.

To specify a recipe, use the cookbook's directory name in the repository followed by two colons and the recipe name, which is the recipe's file name without the .rb extension. For example: phpapp2::dbsetup specifies the dbsetup.rb recipe in the repository's phpapp2 folder.

$sel:defaultSecurityGroupNames:Layer', layer_defaultSecurityGroupNames - An array containing the layer's security group names.

$sel:enableAutoHealing:Layer', layer_enableAutoHealing - Whether auto healing is disabled for the layer.

$sel:installUpdatesOnBoot:Layer', layer_installUpdatesOnBoot - Whether to install operating system and package updates when the instance boots. The default value is true. If this value is set to false, you must then update your instances manually by using CreateDeployment to run the update_dependencies stack command or manually running yum (Amazon Linux) or apt-get (Ubuntu) on the instances.

We strongly recommend using the default value of true, to ensure that your instances have the latest security updates.

$sel:layerId:Layer', layer_layerId - The layer ID.

$sel:lifecycleEventConfiguration:Layer', layer_lifecycleEventConfiguration - A LifeCycleEventConfiguration object that specifies the Shutdown event configuration.

$sel:name:Layer', layer_name - The layer name.

$sel:packages:Layer', layer_packages - An array of Package objects that describe the layer's packages.

$sel:shortname:Layer', layer_shortname - The layer short name.

$sel:stackId:Layer', layer_stackId - The layer stack ID.

$sel:type':Layer', layer_type - The layer type.

$sel:useEbsOptimizedInstances:Layer', layer_useEbsOptimizedInstances - Whether the layer uses Amazon EBS-optimized instances.

$sel:volumeConfigurations:Layer', layer_volumeConfigurations - A VolumeConfigurations object that describes the layer's Amazon EBS volumes.

layer_arn :: Lens' Layer (Maybe Text) Source #

The Amazon Resource Number (ARN) of a layer.

layer_attributes :: Lens' Layer (Maybe (HashMap LayerAttributesKeys (Maybe Text))) Source #

The layer attributes.

For the HaproxyStatsPassword, MysqlRootPassword, and GangliaPassword attributes, AWS OpsWorks Stacks returns *****FILTERED***** instead of the actual value

For an ECS Cluster layer, AWS OpsWorks Stacks the EcsClusterArn attribute is set to the cluster's ARN.

layer_autoAssignElasticIps :: Lens' Layer (Maybe Bool) Source #

Whether to automatically assign an Elastic IP address to the layer's instances. For more information, see How to Edit a Layer.

layer_autoAssignPublicIps :: Lens' Layer (Maybe Bool) Source #

For stacks that are running in a VPC, whether to automatically assign a public IP address to the layer's instances. For more information, see How to Edit a Layer.

layer_cloudWatchLogsConfiguration :: Lens' Layer (Maybe CloudWatchLogsConfiguration) Source #

The Amazon CloudWatch Logs configuration settings for the layer.

layer_createdAt :: Lens' Layer (Maybe Text) Source #

Date when the layer was created.

layer_customInstanceProfileArn :: Lens' Layer (Maybe Text) Source #

The ARN of the default IAM profile to be used for the layer's EC2 instances. For more information about IAM ARNs, see Using Identifiers.

layer_customJson :: Lens' Layer (Maybe Text) Source #

A JSON formatted string containing the layer's custom stack configuration and deployment attributes.

layer_customRecipes :: Lens' Layer (Maybe Recipes) Source #

A LayerCustomRecipes object that specifies the layer's custom recipes.

layer_customSecurityGroupIds :: Lens' Layer (Maybe [Text]) Source #

An array containing the layer's custom security group IDs.

layer_defaultRecipes :: Lens' Layer (Maybe Recipes) Source #

AWS OpsWorks Stacks supports five lifecycle events: setup, configuration, deploy, undeploy, and shutdown. For each layer, AWS OpsWorks Stacks runs a set of standard recipes for each event. You can also provide custom recipes for any or all layers and events. AWS OpsWorks Stacks runs custom event recipes after the standard recipes. LayerCustomRecipes specifies the custom recipes for a particular layer to be run in response to each of the five events.

To specify a recipe, use the cookbook's directory name in the repository followed by two colons and the recipe name, which is the recipe's file name without the .rb extension. For example: phpapp2::dbsetup specifies the dbsetup.rb recipe in the repository's phpapp2 folder.

layer_defaultSecurityGroupNames :: Lens' Layer (Maybe [Text]) Source #

An array containing the layer's security group names.

layer_enableAutoHealing :: Lens' Layer (Maybe Bool) Source #

Whether auto healing is disabled for the layer.

layer_installUpdatesOnBoot :: Lens' Layer (Maybe Bool) Source #

Whether to install operating system and package updates when the instance boots. The default value is true. If this value is set to false, you must then update your instances manually by using CreateDeployment to run the update_dependencies stack command or manually running yum (Amazon Linux) or apt-get (Ubuntu) on the instances.

We strongly recommend using the default value of true, to ensure that your instances have the latest security updates.

layer_lifecycleEventConfiguration :: Lens' Layer (Maybe LifecycleEventConfiguration) Source #

A LifeCycleEventConfiguration object that specifies the Shutdown event configuration.

layer_name :: Lens' Layer (Maybe Text) Source #

The layer name.

layer_packages :: Lens' Layer (Maybe [Text]) Source #

An array of Package objects that describe the layer's packages.

layer_shortname :: Lens' Layer (Maybe Text) Source #

The layer short name.

layer_stackId :: Lens' Layer (Maybe Text) Source #

The layer stack ID.

layer_useEbsOptimizedInstances :: Lens' Layer (Maybe Bool) Source #

Whether the layer uses Amazon EBS-optimized instances.

layer_volumeConfigurations :: Lens' Layer (Maybe [VolumeConfiguration]) Source #

A VolumeConfigurations object that describes the layer's Amazon EBS volumes.