Values.AddLayerVersionPermissionRequestSourceAdds 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.
type nonrec t = {layerName : LayerName.t;The name or Amazon Resource Name (ARN) of the layer.
*)versionNumber : LayerVersionNumber.t;The version number.
*)statementId : StatementId.t;An identifier that distinguishes the policy from others on the same layer version.
*)action : LayerPermissionAllowedAction.t;The API action that grants access to the layer. For example, lambda:GetLayerVersion.
*)principal : LayerPermissionAllowedPrincipal.t;An account ID, or * to grant layer usage permission to all accounts in an organization, or all Amazon Web Services accounts (if organizationId is not specified). For the last case, make sure that you really do want all Amazon Web Services accounts to have usage permission to this layer.
*)organizationId : OrganizationId.t option;With the principal set to *, grant permission to all accounts in the specified organization.
*)revisionId : String_.t option;Only update the policy if the revision ID matches the ID specified. Use this option to avoid modifying a policy that has changed since you last read it.
*)}val make :
?organizationId:??? ->
?revisionId:??? ->
layerName:LayerName.t ->
versionNumber:LayerVersionNumber.t ->
statementId:StatementId.t ->
action:LayerPermissionAllowedAction.t ->
principal:LayerPermissionAllowedPrincipal.t ->
unit ->
tval to_value :
t ->
[> `Structure of
(string * [> `Long of LayerVersionNumber.t | `String of LayerName.t ])
list ]