amazonka-lambda-2.0: Amazon Lambda SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.Lambda.CreateFunctionUrlConfig

Description

Creates a Lambda function URL with the specified configuration parameters. A function URL is a dedicated HTTP(S) endpoint that you can use to invoke your function.

Synopsis

Creating a Request

data CreateFunctionUrlConfig Source #

See: newCreateFunctionUrlConfig smart constructor.

Constructors

CreateFunctionUrlConfig' 

Fields

  • cors :: Maybe Cors

    The cross-origin resource sharing (CORS) settings for your function URL.

  • qualifier :: Maybe Text

    The alias name.

  • functionName :: Text

    The name of the Lambda function.

    Name formats

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

    The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

  • authType :: FunctionUrlAuthType

    The type of authentication that your function URL uses. Set to AWS_IAM if you want to restrict access to authenticated IAM users only. Set to NONE if you want to bypass IAM authentication to create a public endpoint. For more information, see Security and auth model for Lambda function URLs.

Instances

Instances details
ToJSON CreateFunctionUrlConfig Source # 
Instance details

Defined in Amazonka.Lambda.CreateFunctionUrlConfig

ToHeaders CreateFunctionUrlConfig Source # 
Instance details

Defined in Amazonka.Lambda.CreateFunctionUrlConfig

ToPath CreateFunctionUrlConfig Source # 
Instance details

Defined in Amazonka.Lambda.CreateFunctionUrlConfig

ToQuery CreateFunctionUrlConfig Source # 
Instance details

Defined in Amazonka.Lambda.CreateFunctionUrlConfig

AWSRequest CreateFunctionUrlConfig Source # 
Instance details

Defined in Amazonka.Lambda.CreateFunctionUrlConfig

Generic CreateFunctionUrlConfig Source # 
Instance details

Defined in Amazonka.Lambda.CreateFunctionUrlConfig

Associated Types

type Rep CreateFunctionUrlConfig :: Type -> Type #

Read CreateFunctionUrlConfig Source # 
Instance details

Defined in Amazonka.Lambda.CreateFunctionUrlConfig

Show CreateFunctionUrlConfig Source # 
Instance details

Defined in Amazonka.Lambda.CreateFunctionUrlConfig

NFData CreateFunctionUrlConfig Source # 
Instance details

Defined in Amazonka.Lambda.CreateFunctionUrlConfig

Methods

rnf :: CreateFunctionUrlConfig -> () #

Eq CreateFunctionUrlConfig Source # 
Instance details

Defined in Amazonka.Lambda.CreateFunctionUrlConfig

Hashable CreateFunctionUrlConfig Source # 
Instance details

Defined in Amazonka.Lambda.CreateFunctionUrlConfig

type AWSResponse CreateFunctionUrlConfig Source # 
Instance details

Defined in Amazonka.Lambda.CreateFunctionUrlConfig

type Rep CreateFunctionUrlConfig Source # 
Instance details

Defined in Amazonka.Lambda.CreateFunctionUrlConfig

type Rep CreateFunctionUrlConfig = D1 ('MetaData "CreateFunctionUrlConfig" "Amazonka.Lambda.CreateFunctionUrlConfig" "amazonka-lambda-2.0-FcjxCCKaCGK94C2lDO9alC" 'False) (C1 ('MetaCons "CreateFunctionUrlConfig'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "cors") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Cors)) :*: S1 ('MetaSel ('Just "qualifier") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "functionName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "authType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 FunctionUrlAuthType))))

newCreateFunctionUrlConfig Source #

Create a value of CreateFunctionUrlConfig 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:

CreateFunctionUrlConfig, createFunctionUrlConfig_cors - The cross-origin resource sharing (CORS) settings for your function URL.

$sel:qualifier:CreateFunctionUrlConfig', createFunctionUrlConfig_qualifier - The alias name.

CreateFunctionUrlConfig, createFunctionUrlConfig_functionName - The name of the Lambda function.

Name formats

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

The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

CreateFunctionUrlConfig, createFunctionUrlConfig_authType - The type of authentication that your function URL uses. Set to AWS_IAM if you want to restrict access to authenticated IAM users only. Set to NONE if you want to bypass IAM authentication to create a public endpoint. For more information, see Security and auth model for Lambda function URLs.

Request Lenses

createFunctionUrlConfig_functionName :: Lens' CreateFunctionUrlConfig Text Source #

The name of the Lambda function.

Name formats

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

The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

createFunctionUrlConfig_authType :: Lens' CreateFunctionUrlConfig FunctionUrlAuthType Source #

The type of authentication that your function URL uses. Set to AWS_IAM if you want to restrict access to authenticated IAM users only. Set to NONE if you want to bypass IAM authentication to create a public endpoint. For more information, see Security and auth model for Lambda function URLs.

Destructuring the Response

data CreateFunctionUrlConfigResponse Source #

See: newCreateFunctionUrlConfigResponse smart constructor.

Constructors

CreateFunctionUrlConfigResponse' 

Fields

Instances

Instances details
Generic CreateFunctionUrlConfigResponse Source # 
Instance details

Defined in Amazonka.Lambda.CreateFunctionUrlConfig

Associated Types

type Rep CreateFunctionUrlConfigResponse :: Type -> Type #

Read CreateFunctionUrlConfigResponse Source # 
Instance details

Defined in Amazonka.Lambda.CreateFunctionUrlConfig

Show CreateFunctionUrlConfigResponse Source # 
Instance details

Defined in Amazonka.Lambda.CreateFunctionUrlConfig

NFData CreateFunctionUrlConfigResponse Source # 
Instance details

Defined in Amazonka.Lambda.CreateFunctionUrlConfig

Eq CreateFunctionUrlConfigResponse Source # 
Instance details

Defined in Amazonka.Lambda.CreateFunctionUrlConfig

type Rep CreateFunctionUrlConfigResponse Source # 
Instance details

Defined in Amazonka.Lambda.CreateFunctionUrlConfig

type Rep CreateFunctionUrlConfigResponse = D1 ('MetaData "CreateFunctionUrlConfigResponse" "Amazonka.Lambda.CreateFunctionUrlConfig" "amazonka-lambda-2.0-FcjxCCKaCGK94C2lDO9alC" 'False) (C1 ('MetaCons "CreateFunctionUrlConfigResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "cors") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Cors)) :*: (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "functionUrl") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))) :*: (S1 ('MetaSel ('Just "functionArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "authType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 FunctionUrlAuthType) :*: S1 ('MetaSel ('Just "creationTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))

newCreateFunctionUrlConfigResponse Source #

Create a value of CreateFunctionUrlConfigResponse 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:

CreateFunctionUrlConfig, createFunctionUrlConfigResponse_cors - The cross-origin resource sharing (CORS) settings for your function URL.

$sel:httpStatus:CreateFunctionUrlConfigResponse', createFunctionUrlConfigResponse_httpStatus - The response's http status code.

CreateFunctionUrlConfigResponse, createFunctionUrlConfigResponse_functionUrl - The HTTP URL endpoint for your function.

CreateFunctionUrlConfigResponse, createFunctionUrlConfigResponse_functionArn - The Amazon Resource Name (ARN) of your function.

CreateFunctionUrlConfig, createFunctionUrlConfigResponse_authType - The type of authentication that your function URL uses. Set to AWS_IAM if you want to restrict access to authenticated IAM users only. Set to NONE if you want to bypass IAM authentication to create a public endpoint. For more information, see Security and auth model for Lambda function URLs.

CreateFunctionUrlConfigResponse, createFunctionUrlConfigResponse_creationTime - When the function URL was created, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).

Response Lenses

createFunctionUrlConfigResponse_authType :: Lens' CreateFunctionUrlConfigResponse FunctionUrlAuthType Source #

The type of authentication that your function URL uses. Set to AWS_IAM if you want to restrict access to authenticated IAM users only. Set to NONE if you want to bypass IAM authentication to create a public endpoint. For more information, see Security and auth model for Lambda function URLs.

createFunctionUrlConfigResponse_creationTime :: Lens' CreateFunctionUrlConfigResponse Text Source #

When the function URL was created, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).