// Updates an existing policy with a new name, description, or content. If you
// don't supply any parameter, that value remains unchanged. You can't change a
// policy's type. This operation can be called only from the organization's
// management account.
Updates an existing policy with a new name, description, or content. If you
don't supply any parameter, that value remains unchanged. You can't change a
policy's type. This operation can be called only from the organization's
management account.
// Updates an existing policy with a new name description or content . If you // don ' t supply any parameter that value remains unchanged . You can ' t change a // policy ' s type . This operation can be called only from the organization ' s // management account .
func (c *Client) UpdatePolicy(ctx context.Context, params *UpdatePolicyInput, optFns ...func(*Options)) (*UpdatePolicyOutput, error) {
	if params == nil {
		params = &UpdatePolicyInput{}
	}
	result, metadata, err := c.invokeOperation(ctx, "UpdatePolicy", params, optFns, addOperationUpdatePolicyMiddlewares)
	if err != nil {
		return nil, err
	}
	out := result.(*UpdatePolicyOutput)
	out.ResultMetadata = metadata
	return out, nil
}
func ( c * Client ) UpdatePolicy ( ctx context . Context , params * UpdatePolicyInput , optFns ... func ( * Options ) ) ( * UpdatePolicyOutput , error ) { if params == nil { params = & UpdatePolicyInput { } } result , metadata , err := c . invokeOperation ( ctx , " " , params , optFns , addOperationUpdatePolicyMiddlewares ) if err != nil { return nil , err } out := result . ( * UpdatePolicyOutput ) out . ResultMetadata = metadata return out , nil }
Updates an existing policy with a new name, description, or content.
Updates an existing policy with a new name description or content .