Class AddPermissionRequest

    • Method Detail

      • functionName

        public final String functionName()

        The name or ARN of the Lambda function, version, or alias.

        Name formats

        • Function namemy-function (name-only), my-function:v1 (with alias).

        • Function ARNarn:aws:lambda:us-west-2:123456789012:function:my-function.

        • Partial ARN123456789012:function:my-function.

        You can append a version number or alias to any of the formats. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

        Returns:
        The name or ARN of the Lambda function, version, or alias.

        Name formats

        • Function namemy-function (name-only), my-function:v1 (with alias).

        • Function ARNarn:aws:lambda:us-west-2:123456789012:function:my-function.

        • Partial ARN123456789012:function:my-function.

        You can append a version number or alias to any of the formats. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

      • statementId

        public final String statementId()

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

        Returns:
        A statement identifier that differentiates the statement from others in the same policy.
      • action

        public final String action()

        The action that the principal can use on the function. For example, lambda:InvokeFunction or lambda:GetFunction.

        Returns:
        The action that the principal can use on the function. For example, lambda:InvokeFunction or lambda:GetFunction.
      • principal

        public final String principal()

        The Amazon Web Services service, Amazon Web Services account, IAM user, or IAM role that invokes the function. If you specify a service, use SourceArn or SourceAccount to limit who can invoke the function through that service.

        Returns:
        The Amazon Web Services service, Amazon Web Services account, IAM user, or IAM role that invokes the function. If you specify a service, use SourceArn or SourceAccount to limit who can invoke the function through that service.
      • sourceArn

        public final String sourceArn()

        For Amazon Web Services services, the ARN of the Amazon Web Services resource that invokes the function. For example, an Amazon S3 bucket or Amazon SNS topic.

        Note that Lambda configures the comparison using the StringLike operator.

        Returns:
        For Amazon Web Services services, the ARN of the Amazon Web Services resource that invokes the function. For example, an Amazon S3 bucket or Amazon SNS topic.

        Note that Lambda configures the comparison using the StringLike operator.

      • sourceAccount

        public final String sourceAccount()

        For Amazon Web Services service, the ID of the Amazon Web Services account that owns the resource. Use this together with SourceArn to ensure that the specified account owns the resource. It is possible for an Amazon S3 bucket to be deleted by its owner and recreated by another account.

        Returns:
        For Amazon Web Services service, the ID of the Amazon Web Services account that owns the resource. Use this together with SourceArn to ensure that the specified account owns the resource. It is possible for an Amazon S3 bucket to be deleted by its owner and recreated by another account.
      • eventSourceToken

        public final String eventSourceToken()

        For Alexa Smart Home functions, a token that the invoker must supply.

        Returns:
        For Alexa Smart Home functions, a token that the invoker must supply.
      • qualifier

        public final String qualifier()

        Specify a version or alias to add permissions to a published version of the function.

        Returns:
        Specify a version or alias to add permissions to a published version of the function.
      • revisionId

        public final String revisionId()

        Update the policy only if the revision ID matches the ID that's specified. Use this option to avoid modifying a policy that has changed since you last read it.

        Returns:
        Update the policy only if the revision ID matches the ID that's specified. Use this option to avoid modifying a policy that has changed since you last read it.
      • principalOrgID

        public final String principalOrgID()

        The identifier for your organization in Organizations. Use this to grant permissions to all the Amazon Web Services accounts under this organization.

        Returns:
        The identifier for your organization in Organizations. Use this to grant permissions to all the Amazon Web Services accounts under this organization.
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object