assign_instance
(**kwargs)¶Assign a registered instance to a layer.
Required Permissions : To use this action, an AWS Identity and Access Management (IAM) user must have a Manage permissions level for the stack or an attached policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions.
See also: AWS API Documentation
Request Syntax
response = client.assign_instance(
InstanceId='string',
LayerIds=[
'string',
]
)
[REQUIRED]
The instance ID.
[REQUIRED]
The layer ID, which must correspond to a custom layer. You cannot assign a registered instance to a built-in layer.
None
Exceptions
OpsWorks.Client.exceptions.ValidationException
OpsWorks.Client.exceptions.ResourceNotFoundException