Module Values.CreateServiceLinkedRoleResponseSource

Creates an IAM role that is linked to a specific Amazon Web Services service. The service controls the attached policies and when the role can be deleted. This helps ensure that the service is not broken by an unexpectedly changed or deleted role, which could put your Amazon Web Services resources into an unknown state. Allowing the service to control the role helps improve service stability and proper cleanup when a service and its role are no longer needed. For more information, see Using service-linked roles in the IAM User Guide. To attach a policy to this service-linked role, you must make the request using the Amazon Web Services service that depends on this role.

Sourcetype createServiceLinkedRoleResult = {
  1. role : Role.t option;
    (*

    A Role object that contains details about the newly created role.

    *)
}
Sourceand responseMetaData = unit
Sourceand t = {
  1. createServiceLinkedRoleResult : createServiceLinkedRoleResult;
  2. responseMetaData : responseMetaData;
}
Sourcetype error = [
  1. | `InvalidInputException of InvalidInputException.t
  2. | `LimitExceededException of LimitExceededException.t
  3. | `NoSuchEntityException of NoSuchEntityException.t
  4. | `ServiceFailureException of ServiceFailureException.t
  5. | `Unknown_operation_error of string * string option
]
Sourceval context_ : string
Sourceval make : ?role:??? -> unit -> t
Sourceval error_of_json : string -> Yojson.Safe.t -> [> `InvalidInputException of InvalidInputException.t | `LimitExceededException of LimitExceededException.t | `NoSuchEntityException of NoSuchEntityException.t | `ServiceFailureException of ServiceFailureException.t | `Unknown_operation_error of string * string option ]
Sourceval error_of_xml : string -> Awso.Xml.t -> [> `InvalidInputException of InvalidInputException.t | `LimitExceededException of LimitExceededException.t | `NoSuchEntityException of NoSuchEntityException.t | `ServiceFailureException of ServiceFailureException.t | `Unknown_operation_error of string * string option ]
Sourceval error_to_json : error -> Yojson.Safe.t
Sourceval to_value : t -> [> `Structure of (string * [> `Structure of (string * [> `Structure of (string * [> `Integer of RoleMaxSessionDurationType.t | `List of [> `Structure of (string * [> `String of TagKeyType.t ]) list ] list | `String of PathType.t | `Structure of (string * [> `Enum of string | `String of ArnType.t | `Timestamp of DateType.t ]) list | `Timestamp of DateType.t ]) list ]) 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