// Creates a clone of a specified stack. For more information, see Clone a Stack
// (https://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-cloning.html).
// By default, all parameters are set to the values used by the parent stack.
// Required Permissions: To use this action, an IAM user must have 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).
Creates a clone of a specified stack. For more information, see Clone a Stack
.
By default, all parameters are set to the values used by the parent stack.
Required Permissions: To use this action, an IAM user must have an attached
policy that explicitly grants permissions. For more information about user
permissions, see Managing User Permissions
.
// Creates a clone of a specified stack . For more information see Clone a Stack // ( https : // docs . aws . amazon . com / opsworks / latest / userguide / workingstacks - cloning . html ) . // By default all parameters are set to the values used by the parent stack . // Required Permissions : To use this action an IAM user must have 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) CloneStack(ctx context.Context, params *CloneStackInput, optFns ...func(*Options)) (*CloneStackOutput, error) {
	if params == nil {
		params = &CloneStackInput{}
	}
	result, metadata, err := c.invokeOperation(ctx, "CloneStack", params, optFns, addOperationCloneStackMiddlewares)
	if err != nil {
		return nil, err
	}
	out := result.(*CloneStackOutput)
	out.ResultMetadata = metadata
	return out, nil
}
func ( c * Client ) CloneStack ( ctx context . Context , params * CloneStackInput , optFns ... func ( * Options ) ) ( * CloneStackOutput , error ) { if params == nil { params = & CloneStackInput { } } result , metadata , err := c . invokeOperation ( ctx , " " , params , optFns , addOperationCloneStackMiddlewares ) if err != nil { return nil , err } out := result . ( * CloneStackOutput ) out . ResultMetadata = metadata return out , nil }
Creates a clone of a specified stack.
Creates a clone of a specified stack .