Module Values.AddLayerVersionPermissionResponseSource

Adds permissions to the resource-based policy of a version of an Lambda layer. Use this action to grant layer usage permission to other accounts. You can grant permission to a single account, all accounts in an organization, or all Amazon Web Services accounts. To revoke permission, call RemoveLayerVersionPermission with the statement ID that you specified when you added it.

Sourcetype nonrec t = {
  1. statement : String_.t option;
    (*

    The permission statement.

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

    A unique identifier for the current revision of the policy.

    *)
}
Sourcetype nonrec error = [
  1. | `InvalidParameterValueException of InvalidParameterValueException.t
  2. | `PolicyLengthExceededException of PolicyLengthExceededException.t
  3. | `PreconditionFailedException of PreconditionFailedException.t
  4. | `ResourceConflictException of ResourceConflictException.t
  5. | `ResourceNotFoundException of ResourceNotFoundException.t
  6. | `ServiceException of ServiceException.t
  7. | `TooManyRequestsException of TooManyRequestsException.t
  8. | `Unknown_operation_error of string * string option
]
Sourceval make : ?statement:??? -> ?revisionId:??? -> unit -> t
Sourceval error_of_json : string -> Yojson.Safe.t -> [> `InvalidParameterValueException of InvalidParameterValueException.t | `PolicyLengthExceededException of PolicyLengthExceededException.t | `PreconditionFailedException of PreconditionFailedException.t | `ResourceConflictException of ResourceConflictException.t | `ResourceNotFoundException of ResourceNotFoundException.t | `ServiceException of ServiceException.t | `TooManyRequestsException of TooManyRequestsException.t | `Unknown_operation_error of string * string option ]
Sourceval error_of_xml : string -> Awso.Xml.t -> [> `InvalidParameterValueException of InvalidParameterValueException.t | `PolicyLengthExceededException of PolicyLengthExceededException.t | `PreconditionFailedException of PreconditionFailedException.t | `ResourceConflictException of ResourceConflictException.t | `ResourceNotFoundException of ResourceNotFoundException.t | `ServiceException of ServiceException.t | `TooManyRequestsException of TooManyRequestsException.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 ]) 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