Module Values.PromotePermissionCreatedFromPolicyResponseSource

When you attach a resource-based policy to a resource, RAM automatically creates a resource share of featureSet=CREATED_FROM_POLICY with a managed permission that has the same IAM permissions as the original resource-based policy. However, this type of managed permission is visible to only the resource share owner, and the associated resource share can't be modified by using RAM. This operation creates a separate, fully manageable customer managed permission that has the same IAM permissions as the original resource-based policy. You can associate this customer managed permission to any resource shares. Before you use PromoteResourceShareCreatedFromPolicy, you should first run this operation to ensure that you have an appropriate customer managed permission that can be associated with the promoted resource share. The original CREATED_FROM_POLICY policy isn't deleted, and resource shares using that original policy aren't automatically updated. You can't modify a CREATED_FROM_POLICY resource share so you can't associate the new customer managed permission by using ReplacePermsissionAssociations. However, if you use PromoteResourceShareCreatedFromPolicy, that operation automatically associates the fully manageable customer managed permission to the newly promoted STANDARD resource share. After you promote a resource share, if the original CREATED_FROM_POLICY managed permission has no other associations to A resource share, then RAM automatically deletes it.

Sourcetype nonrec t = {
  1. permission : ResourceSharePermissionSummary.t option;
  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. | `InvalidParameterException of InvalidParameterException.t
  2. | `InvalidPolicyException of InvalidPolicyException.t
  3. | `MalformedArnException of MalformedArnException.t
  4. | `MissingRequiredParameterException of MissingRequiredParameterException.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 : ?permission:??? -> ?clientToken:??? -> unit -> t
Sourceval error_of_json : string -> Yojson.Safe.t -> [> `InvalidParameterException of InvalidParameterException.t | `InvalidPolicyException of InvalidPolicyException.t | `MalformedArnException of MalformedArnException.t | `MissingRequiredParameterException of MissingRequiredParameterException.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 -> [> `InvalidParameterException of InvalidParameterException.t | `InvalidPolicyException of InvalidPolicyException.t | `MalformedArnException of MalformedArnException.t | `MissingRequiredParameterException of MissingRequiredParameterException.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 * [> `Boolean of Boolean.t | `Enum of string | `List of [> `Structure of (string * [> `String of TagKey.t ]) list ] list | `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