libZSservicesZSamazonka-lambdaZSamazonka-lambda
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.Lambda.RemovePermission

Description

Revokes function-use permission from an Amazon Web Services service or another account. You can get the ID of the statement from the output of GetPolicy.

Synopsis

Creating a Request

data RemovePermission Source #

See: newRemovePermission smart constructor.

Constructors

RemovePermission' 

Fields

  • qualifier :: Maybe Text

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

  • revisionId :: Maybe Text

    Only update the policy 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.

  • functionName :: Text

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

    Name formats

    • Function name - my-function (name-only), my-function:v1 (with alias).
    • Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function.
    • Partial ARN - 123456789012: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 :: Text

    Statement ID of the permission to remove.

Instances

Instances details
Eq RemovePermission Source # 
Instance details

Defined in Amazonka.Lambda.RemovePermission

Read RemovePermission Source # 
Instance details

Defined in Amazonka.Lambda.RemovePermission

Show RemovePermission Source # 
Instance details

Defined in Amazonka.Lambda.RemovePermission

Generic RemovePermission Source # 
Instance details

Defined in Amazonka.Lambda.RemovePermission

Associated Types

type Rep RemovePermission :: Type -> Type #

NFData RemovePermission Source # 
Instance details

Defined in Amazonka.Lambda.RemovePermission

Methods

rnf :: RemovePermission -> () #

Hashable RemovePermission Source # 
Instance details

Defined in Amazonka.Lambda.RemovePermission

AWSRequest RemovePermission Source # 
Instance details

Defined in Amazonka.Lambda.RemovePermission

Associated Types

type AWSResponse RemovePermission #

ToHeaders RemovePermission Source # 
Instance details

Defined in Amazonka.Lambda.RemovePermission

ToPath RemovePermission Source # 
Instance details

Defined in Amazonka.Lambda.RemovePermission

ToQuery RemovePermission Source # 
Instance details

Defined in Amazonka.Lambda.RemovePermission

type Rep RemovePermission Source # 
Instance details

Defined in Amazonka.Lambda.RemovePermission

type Rep RemovePermission = D1 ('MetaData "RemovePermission" "Amazonka.Lambda.RemovePermission" "libZSservicesZSamazonka-lambdaZSamazonka-lambda" 'False) (C1 ('MetaCons "RemovePermission'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "qualifier") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "revisionId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "functionName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "statementId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))
type AWSResponse RemovePermission Source # 
Instance details

Defined in Amazonka.Lambda.RemovePermission

newRemovePermission Source #

Create a value of RemovePermission with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:qualifier:RemovePermission', removePermission_qualifier - Specify a version or alias to remove permissions from a published version of the function.

$sel:revisionId:RemovePermission', removePermission_revisionId - Only update the policy 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.

$sel:functionName:RemovePermission', removePermission_functionName - The name of the Lambda function, version, or alias.

Name formats

  • Function name - my-function (name-only), my-function:v1 (with alias).
  • Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function.
  • Partial ARN - 123456789012: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.

$sel:statementId:RemovePermission', removePermission_statementId - Statement ID of the permission to remove.

Request Lenses

removePermission_qualifier :: Lens' RemovePermission (Maybe Text) Source #

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

removePermission_revisionId :: Lens' RemovePermission (Maybe Text) Source #

Only update the policy 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.

removePermission_functionName :: Lens' RemovePermission Text Source #

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

Name formats

  • Function name - my-function (name-only), my-function:v1 (with alias).
  • Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function.
  • Partial ARN - 123456789012: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.

removePermission_statementId :: Lens' RemovePermission Text Source #

Statement ID of the permission to remove.

Destructuring the Response

data RemovePermissionResponse Source #

See: newRemovePermissionResponse smart constructor.

Instances

Instances details
Eq RemovePermissionResponse Source # 
Instance details

Defined in Amazonka.Lambda.RemovePermission

Read RemovePermissionResponse Source # 
Instance details

Defined in Amazonka.Lambda.RemovePermission

Show RemovePermissionResponse Source # 
Instance details

Defined in Amazonka.Lambda.RemovePermission

Generic RemovePermissionResponse Source # 
Instance details

Defined in Amazonka.Lambda.RemovePermission

Associated Types

type Rep RemovePermissionResponse :: Type -> Type #

NFData RemovePermissionResponse Source # 
Instance details

Defined in Amazonka.Lambda.RemovePermission

type Rep RemovePermissionResponse Source # 
Instance details

Defined in Amazonka.Lambda.RemovePermission

type Rep RemovePermissionResponse = D1 ('MetaData "RemovePermissionResponse" "Amazonka.Lambda.RemovePermission" "libZSservicesZSamazonka-lambdaZSamazonka-lambda" 'False) (C1 ('MetaCons "RemovePermissionResponse'" 'PrefixI 'False) (U1 :: Type -> Type))

newRemovePermissionResponse :: RemovePermissionResponse Source #

Create a value of RemovePermissionResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.