Module Values.AddPolicyStatementInputSource

Adds a policy statement object. To retrieve a list of existing policy statements, use the GetPolicy API.

Sourcetype nonrec t = {
  1. arn : VeniceGlobalArn.t;
    (*

    The Amazon Resource Name (ARN) of the resource that will be accessed by the principal.

    *)
  2. statementId : StatementId.t;
    (*

    A statement identifier that differentiates the statement from others in the same policy.

    *)
  3. effect_ : StatementEffect.t;
    (*

    Determines whether the permissions specified in the policy are to be allowed (Allow) or denied (Deny). If you set the value of the effect parameter to Deny for the AddPolicyStatement operation, you must also set the value of the effect parameter in the policy to Deny for the PutPolicy operation.

    *)
  4. action : StatementActionList.t;
    (*

    The action that the principal can use on the resource. For example, entityresolution:GetIdMappingJob, entityresolution:GetMatchingJob.

    *)
  5. principal : StatementPrincipalList.t;
    (*

    The Amazon Web Services service or Amazon Web Services account that can access the resource defined as ARN.

    *)
  6. condition : StatementCondition.t option;
    (*

    A set of condition keys that you can use in key policies.

    *)
}
Sourceval context_ : string
Sourceval make : ?condition:??? -> arn:VeniceGlobalArn.t -> statementId:StatementId.t -> effect_:StatementEffect.t -> action:StatementActionList.t -> principal:StatementPrincipalList.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Enum of string | `List of [> `String of StatementAction.t ] list | `String of VeniceGlobalArn.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