Class GetPolicyDocumentStatement.Builder

  • Enclosing class:
    GetPolicyDocumentStatement

    public static final class GetPolicyDocumentStatement.Builder
    extends java.lang.Object
    • Method Detail

      • actions

        public GetPolicyDocumentStatement.Builder actions​(@Nullable
                                                          java.util.List<java.lang.String> actions)
        Parameters:
        actions - List of actions that this statement either allows or denies. For example, `["ec2:RunInstances", "s3:*"]`.
        Returns:
        builder
      • actions

        public GetPolicyDocumentStatement.Builder actions​(java.lang.String... actions)
        Parameters:
        actions - List of actions that this statement either allows or denies. For example, `["ec2:RunInstances", "s3:*"]`.
        Returns:
        builder
      • effect

        public GetPolicyDocumentStatement.Builder effect​(@Nullable
                                                         java.lang.String effect)
        Parameters:
        effect - Whether this statement allows or denies the given actions. Valid values are `Allow` and `Deny`. Defaults to `Allow`.
        Returns:
        builder
      • notActions

        public GetPolicyDocumentStatement.Builder notActions​(@Nullable
                                                             java.util.List<java.lang.String> notActions)
        Parameters:
        notActions - List of actions that this statement does *not* apply to. Use to apply a policy statement to all actions *except* those listed.
        Returns:
        builder
      • notActions

        public GetPolicyDocumentStatement.Builder notActions​(java.lang.String... notActions)
        Parameters:
        notActions - List of actions that this statement does *not* apply to. Use to apply a policy statement to all actions *except* those listed.
        Returns:
        builder
      • notResources

        public GetPolicyDocumentStatement.Builder notResources​(@Nullable
                                                               java.util.List<java.lang.String> notResources)
        Parameters:
        notResources - List of resource ARNs that this statement does *not* apply to. Use to apply a policy statement to all resources *except* those listed. Conflicts with `resources`.
        Returns:
        builder
      • notResources

        public GetPolicyDocumentStatement.Builder notResources​(java.lang.String... notResources)
        Parameters:
        notResources - List of resource ARNs that this statement does *not* apply to. Use to apply a policy statement to all resources *except* those listed. Conflicts with `resources`.
        Returns:
        builder
      • resources

        public GetPolicyDocumentStatement.Builder resources​(@Nullable
                                                            java.util.List<java.lang.String> resources)
        Parameters:
        resources - List of resource ARNs that this statement applies to. This is required by AWS if used for an IAM policy. Conflicts with `notResources`.
        Returns:
        builder
      • resources

        public GetPolicyDocumentStatement.Builder resources​(java.lang.String... resources)
        Parameters:
        resources - List of resource ARNs that this statement applies to. This is required by AWS if used for an IAM policy. Conflicts with `notResources`.
        Returns:
        builder
      • sid

        public GetPolicyDocumentStatement.Builder sid​(@Nullable
                                                      java.lang.String sid)
        Parameters:
        sid - Sid (statement ID) is an identifier for a policy statement.
        Returns:
        builder