// Requests a description of a specified set of deployments. 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
// (https://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
Requests a description of a specified set of deployments. 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
.
// Requests a description of a specified set of deployments . 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 // ( https : // docs . aws . amazon . com / opsworks / latest / userguide / opsworks - security - users . html ) .
func (c *Client) DescribeDeployments(ctx context.Context, params *DescribeDeploymentsInput, optFns ...func(*Options)) (*DescribeDeploymentsOutput, error) {
	if params == nil {
		params = &DescribeDeploymentsInput{}
	}
	result, metadata, err := c.invokeOperation(ctx, "DescribeDeployments", params, optFns, addOperationDescribeDeploymentsMiddlewares)
	if err != nil {
		return nil, err
	}
	out := result.(*DescribeDeploymentsOutput)
	out.ResultMetadata = metadata
	return out, nil
}
func ( c * Client ) DescribeDeployments ( ctx context . Context , params * DescribeDeploymentsInput , optFns ... func ( * Options ) ) ( * DescribeDeploymentsOutput , error ) { if params == nil { params = & DescribeDeploymentsInput { } } result , metadata , err := c . invokeOperation ( ctx , " " , params , optFns , addOperationDescribeDeploymentsMiddlewares ) if err != nil { return nil , err } out := result . ( * DescribeDeploymentsOutput ) out . ResultMetadata = metadata return out , nil }
Requests a description of a specified set of deployments.
Requests a description of a specified set of deployments .