Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
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
- data CreateFunctionUrlConfig = CreateFunctionUrlConfig' {}
- newCreateFunctionUrlConfig :: Text -> FunctionUrlAuthType -> CreateFunctionUrlConfig
- createFunctionUrlConfig_cors :: Lens' CreateFunctionUrlConfig (Maybe Cors)
- createFunctionUrlConfig_qualifier :: Lens' CreateFunctionUrlConfig (Maybe Text)
- createFunctionUrlConfig_functionName :: Lens' CreateFunctionUrlConfig Text
- createFunctionUrlConfig_authType :: Lens' CreateFunctionUrlConfig FunctionUrlAuthType
- data CreateFunctionUrlConfigResponse = CreateFunctionUrlConfigResponse' {
- cors :: Maybe Cors
- httpStatus :: Int
- functionUrl :: Text
- functionArn :: Text
- authType :: FunctionUrlAuthType
- creationTime :: Text
- newCreateFunctionUrlConfigResponse :: Int -> Text -> Text -> FunctionUrlAuthType -> Text -> CreateFunctionUrlConfigResponse
- createFunctionUrlConfigResponse_cors :: Lens' CreateFunctionUrlConfigResponse (Maybe Cors)
- createFunctionUrlConfigResponse_httpStatus :: Lens' CreateFunctionUrlConfigResponse Int
- createFunctionUrlConfigResponse_functionUrl :: Lens' CreateFunctionUrlConfigResponse Text
- createFunctionUrlConfigResponse_functionArn :: Lens' CreateFunctionUrlConfigResponse Text
- createFunctionUrlConfigResponse_authType :: Lens' CreateFunctionUrlConfigResponse FunctionUrlAuthType
- createFunctionUrlConfigResponse_creationTime :: Lens' CreateFunctionUrlConfigResponse Text
Creating a Request
data CreateFunctionUrlConfig Source #
See: newCreateFunctionUrlConfig
smart constructor.
Constructors
CreateFunctionUrlConfig' | |
Fields
|
Instances
newCreateFunctionUrlConfig Source #
Arguments
:: Text | |
-> FunctionUrlAuthType | |
-> CreateFunctionUrlConfig |
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 name –
my-function
. - Function ARN –
arn:aws:lambda:us-west-2:123456789012:function:my-function
. - Partial ARN –
123456789012: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_cors :: Lens' CreateFunctionUrlConfig (Maybe Cors) Source #
The cross-origin resource sharing (CORS) settings for your function URL.
createFunctionUrlConfig_qualifier :: Lens' CreateFunctionUrlConfig (Maybe Text) Source #
The alias name.
createFunctionUrlConfig_functionName :: Lens' CreateFunctionUrlConfig Text Source #
The name of the Lambda function.
Name formats
- Function name –
my-function
. - Function ARN –
arn:aws:lambda:us-west-2:123456789012:function:my-function
. - Partial ARN –
123456789012: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
newCreateFunctionUrlConfigResponse Source #
Arguments
:: Int | |
-> Text | |
-> Text | |
-> FunctionUrlAuthType | |
-> Text | |
-> CreateFunctionUrlConfigResponse |
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_cors :: Lens' CreateFunctionUrlConfigResponse (Maybe Cors) Source #
The cross-origin resource sharing (CORS) settings for your function URL.
createFunctionUrlConfigResponse_httpStatus :: Lens' CreateFunctionUrlConfigResponse Int Source #
The response's http status code.
createFunctionUrlConfigResponse_functionUrl :: Lens' CreateFunctionUrlConfigResponse Text Source #
The HTTP URL endpoint for your function.
createFunctionUrlConfigResponse_functionArn :: Lens' CreateFunctionUrlConfigResponse Text Source #
The Amazon Resource Name (ARN) of your function.
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).