Module Values.ReplacePermissionAssociationsResponseSource

Updates all resource shares that use a managed permission to a different managed permission. This operation always applies the default version of the target managed permission. You can optionally specify that the update applies to only resource shares that currently use a specified version. This enables you to update to the latest version, without changing the which managed permission is used. You can use this operation to update all of your resource shares to use the current default version of the permission by specifying the same value for the fromPermissionArn and toPermissionArn parameters. You can use the optional fromPermissionVersion parameter to update only those resources that use a specified version of the managed permission to the new managed permission. To successfully perform this operation, you must have permission to update the resource-based policy on all affected resource types.

Sourcetype nonrec t = {
  1. replacePermissionAssociationsWork : ReplacePermissionAssociationsWork.t option;
    (*

    Specifies a data structure that you can use to track the asynchronous tasks that RAM performs to complete this operation. You can use the ListReplacePermissionAssociationsWork operation and pass the id value returned in this structure.

    *)
  2. clientToken : String_.t option;
    (*

    The idempotency identifier associated with this request. If you want to repeat the same operation in an idempotent manner then you must include this value in the clientToken request parameter of that later call. All other parameters must also have the same values that you used in the first call.

    *)
}
Sourcetype nonrec error = [
  1. | `IdempotentParameterMismatchException of IdempotentParameterMismatchException.t
  2. | `InvalidClientTokenException of InvalidClientTokenException.t
  3. | `InvalidParameterException of InvalidParameterException.t
  4. | `MalformedArnException of MalformedArnException.t
  5. | `OperationNotPermittedException of OperationNotPermittedException.t
  6. | `ServerInternalException of ServerInternalException.t
  7. | `ServiceUnavailableException of ServiceUnavailableException.t
  8. | `UnknownResourceException of UnknownResourceException.t
  9. | `Unknown_operation_error of string * string option
]
Sourceval make : ?replacePermissionAssociationsWork:??? -> ?clientToken:??? -> unit -> t
Sourceval error_of_json : string -> Yojson.Safe.t -> [> `IdempotentParameterMismatchException of IdempotentParameterMismatchException.t | `InvalidClientTokenException of InvalidClientTokenException.t | `InvalidParameterException of InvalidParameterException.t | `MalformedArnException of MalformedArnException.t | `OperationNotPermittedException of OperationNotPermittedException.t | `ServerInternalException of ServerInternalException.t | `ServiceUnavailableException of ServiceUnavailableException.t | `UnknownResourceException of UnknownResourceException.t | `Unknown_operation_error of string * string option ]
Sourceval error_of_xml : string -> Awso.Xml.t -> [> `IdempotentParameterMismatchException of IdempotentParameterMismatchException.t | `InvalidClientTokenException of InvalidClientTokenException.t | `InvalidParameterException of InvalidParameterException.t | `MalformedArnException of MalformedArnException.t | `OperationNotPermittedException of OperationNotPermittedException.t | `ServerInternalException of ServerInternalException.t | `ServiceUnavailableException of ServiceUnavailableException.t | `UnknownResourceException of UnknownResourceException.t | `Unknown_operation_error of string * string option ]
Sourceval error_to_json : error -> Yojson.Safe.t
Sourceval to_value : t -> [> `Structure of (string * [> `String of String_.t | `Structure of (string * [> `Enum of string | `String of String_.t | `Timestamp of DateTime.t ]) list ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t