DescribeLayers - OpsWorks


Requests a description of one or more layers in a specified stack.


This call accepts only one resource-identifying parameter.

Required Permissions: To use this action, an IAM user must have a Show, Deploy, or Manage permissions level for the stack, or an attached policy that explicitly grants permissions. For more information about user permissions, see Managing User Permissions.

Request Syntax

{ "LayerIds": [ "string" ], "StackId": "string" }

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters.

The request accepts the following data in JSON format.


An array of layer IDs that specify the layers to be described. If you omit this parameter, DescribeLayers returns a description of every layer in the specified stack.

Type: Array of strings

Required: No


The stack ID.

Type: String

Required: No

Response Syntax

{ "Layers": [ { "Arn": "string", "Attributes": { "string" : "string" }, "AutoAssignElasticIps": boolean, "AutoAssignPublicIps": boolean, "CloudWatchLogsConfiguration": { "Enabled": boolean, "LogStreams": [ { "BatchCount": number, "BatchSize": number, "BufferDuration": number, "DatetimeFormat": "string", "Encoding": "string", "File": "string", "FileFingerprintLines": "string", "InitialPosition": "string", "LogGroupName": "string", "MultiLineStartPattern": "string", "TimeZone": "string" } ] }, "CreatedAt": "string", "CustomInstanceProfileArn": "string", "CustomJson": "string", "CustomRecipes": { "Configure": [ "string" ], "Deploy": [ "string" ], "Setup": [ "string" ], "Shutdown": [ "string" ], "Undeploy": [ "string" ] }, "CustomSecurityGroupIds": [ "string" ], "DefaultRecipes": { "Configure": [ "string" ], "Deploy": [ "string" ], "Setup": [ "string" ], "Shutdown": [ "string" ], "Undeploy": [ "string" ] }, "DefaultSecurityGroupNames": [ "string" ], "EnableAutoHealing": boolean, "InstallUpdatesOnBoot": boolean, "LayerId": "string", "LifecycleEventConfiguration": { "Shutdown": { "DelayUntilElbConnectionsDrained": boolean, "ExecutionTimeout": number } }, "Name": "string", "Packages": [ "string" ], "Shortname": "string", "StackId": "string", "Type": "string", "UseEbsOptimizedInstances": boolean, "VolumeConfigurations": [ { "Encrypted": boolean, "Iops": number, "MountPoint": "string", "NumberOfDisks": number, "RaidLevel": number, "Size": number, "VolumeType": "string" } ] } ] }

Response Elements

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.


An array of Layer objects that describe the layers.

Type: Array of Layer objects


For information about the errors that are common to all actions, see Common Errors.


Indicates that a resource was not found.

HTTP Status Code: 400


Indicates that a request was not valid.

HTTP Status Code: 400

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: