| 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.UpdateFunctionUrlConfig
Description
Updates the configuration for a Lambda function URL.
Synopsis
- data UpdateFunctionUrlConfig = UpdateFunctionUrlConfig' {}
- newUpdateFunctionUrlConfig :: Text -> UpdateFunctionUrlConfig
- updateFunctionUrlConfig_authType :: Lens' UpdateFunctionUrlConfig (Maybe FunctionUrlAuthType)
- updateFunctionUrlConfig_cors :: Lens' UpdateFunctionUrlConfig (Maybe Cors)
- updateFunctionUrlConfig_qualifier :: Lens' UpdateFunctionUrlConfig (Maybe Text)
- updateFunctionUrlConfig_functionName :: Lens' UpdateFunctionUrlConfig Text
- data UpdateFunctionUrlConfigResponse = UpdateFunctionUrlConfigResponse' {}
- newUpdateFunctionUrlConfigResponse :: Int -> Text -> Text -> FunctionUrlAuthType -> Text -> Text -> UpdateFunctionUrlConfigResponse
- updateFunctionUrlConfigResponse_cors :: Lens' UpdateFunctionUrlConfigResponse (Maybe Cors)
- updateFunctionUrlConfigResponse_httpStatus :: Lens' UpdateFunctionUrlConfigResponse Int
- updateFunctionUrlConfigResponse_functionUrl :: Lens' UpdateFunctionUrlConfigResponse Text
- updateFunctionUrlConfigResponse_functionArn :: Lens' UpdateFunctionUrlConfigResponse Text
- updateFunctionUrlConfigResponse_authType :: Lens' UpdateFunctionUrlConfigResponse FunctionUrlAuthType
- updateFunctionUrlConfigResponse_creationTime :: Lens' UpdateFunctionUrlConfigResponse Text
- updateFunctionUrlConfigResponse_lastModifiedTime :: Lens' UpdateFunctionUrlConfigResponse Text
Creating a Request
data UpdateFunctionUrlConfig Source #
See: newUpdateFunctionUrlConfig smart constructor.
Constructors
| UpdateFunctionUrlConfig' | |
Fields
| |
Instances
newUpdateFunctionUrlConfig Source #
Arguments
| :: Text | |
| -> UpdateFunctionUrlConfig |
Create a value of UpdateFunctionUrlConfig 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:
UpdateFunctionUrlConfig, updateFunctionUrlConfig_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.
UpdateFunctionUrlConfig, updateFunctionUrlConfig_cors - The
cross-origin resource sharing (CORS)
settings for your function URL.
$sel:qualifier:UpdateFunctionUrlConfig', updateFunctionUrlConfig_qualifier - The alias name.
UpdateFunctionUrlConfig, updateFunctionUrlConfig_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.
Request Lenses
updateFunctionUrlConfig_authType :: Lens' UpdateFunctionUrlConfig (Maybe 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.
updateFunctionUrlConfig_cors :: Lens' UpdateFunctionUrlConfig (Maybe Cors) Source #
The cross-origin resource sharing (CORS) settings for your function URL.
updateFunctionUrlConfig_qualifier :: Lens' UpdateFunctionUrlConfig (Maybe Text) Source #
The alias name.
updateFunctionUrlConfig_functionName :: Lens' UpdateFunctionUrlConfig 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.
Destructuring the Response
data UpdateFunctionUrlConfigResponse Source #
See: newUpdateFunctionUrlConfigResponse smart constructor.
Constructors
| UpdateFunctionUrlConfigResponse' | |
Fields
| |
Instances
newUpdateFunctionUrlConfigResponse Source #
Arguments
| :: Int | |
| -> Text | |
| -> Text | |
| -> FunctionUrlAuthType | |
| -> Text | |
| -> Text | |
| -> UpdateFunctionUrlConfigResponse |
Create a value of UpdateFunctionUrlConfigResponse 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:
UpdateFunctionUrlConfig, updateFunctionUrlConfigResponse_cors - The
cross-origin resource sharing (CORS)
settings for your function URL.
$sel:httpStatus:UpdateFunctionUrlConfigResponse', updateFunctionUrlConfigResponse_httpStatus - The response's http status code.
UpdateFunctionUrlConfigResponse, updateFunctionUrlConfigResponse_functionUrl - The HTTP URL endpoint for your function.
UpdateFunctionUrlConfigResponse, updateFunctionUrlConfigResponse_functionArn - The Amazon Resource Name (ARN) of your function.
UpdateFunctionUrlConfig, updateFunctionUrlConfigResponse_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.
UpdateFunctionUrlConfigResponse, updateFunctionUrlConfigResponse_creationTime - When the function URL was created, in
ISO-8601 format
(YYYY-MM-DDThh:mm:ss.sTZD).
UpdateFunctionUrlConfigResponse, updateFunctionUrlConfigResponse_lastModifiedTime - When the function URL configuration was last updated, in
ISO-8601 format
(YYYY-MM-DDThh:mm:ss.sTZD).
Response Lenses
updateFunctionUrlConfigResponse_cors :: Lens' UpdateFunctionUrlConfigResponse (Maybe Cors) Source #
The cross-origin resource sharing (CORS) settings for your function URL.
updateFunctionUrlConfigResponse_httpStatus :: Lens' UpdateFunctionUrlConfigResponse Int Source #
The response's http status code.
updateFunctionUrlConfigResponse_functionUrl :: Lens' UpdateFunctionUrlConfigResponse Text Source #
The HTTP URL endpoint for your function.
updateFunctionUrlConfigResponse_functionArn :: Lens' UpdateFunctionUrlConfigResponse Text Source #
The Amazon Resource Name (ARN) of your function.
updateFunctionUrlConfigResponse_authType :: Lens' UpdateFunctionUrlConfigResponse 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.
updateFunctionUrlConfigResponse_creationTime :: Lens' UpdateFunctionUrlConfigResponse Text Source #
When the function URL was created, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).
updateFunctionUrlConfigResponse_lastModifiedTime :: Lens' UpdateFunctionUrlConfigResponse Text Source #
When the function URL configuration was last updated, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).