/*
* Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/
package com.amazonaws.services.lambda.model;
import java.io.Serializable;
import javax.annotation.Generated;
/**
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class CreateFunctionUrlConfigResult extends com.amazonaws.AmazonWebServiceResult
* The HTTP URL endpoint for your function.
*
* The Amazon Resource Name (ARN) of your function.
*
* The type of authentication that your function URL uses. Set to
* The cross-origin resource sharing (CORS)
* settings for your function URL.
*
* When the function URL was created, in ISO-8601 format
* (YYYY-MM-DDThh:mm:ss.sTZD).
*
* Use one of the following options:
*
*
*
* The HTTP URL endpoint for your function.
*
* The HTTP URL endpoint for your function.
*
* The HTTP URL endpoint for your function.
*
* The Amazon Resource Name (ARN) of your function.
*
* The Amazon Resource Name (ARN) of your function.
*
* The Amazon Resource Name (ARN) of your function.
*
* The type of authentication that your function URL uses. Set to
* The type of authentication that your function URL uses. Set to
* The type of authentication that your function URL uses. Set to
* The type of authentication that your function URL uses. Set to
* The cross-origin resource sharing (CORS)
* settings for your function URL.
*
* The cross-origin resource sharing (CORS)
* settings for your function URL.
*
* The cross-origin resource sharing (CORS)
* settings for your function URL.
*
* When the function URL was created, in ISO-8601 format
* (YYYY-MM-DDThh:mm:ss.sTZD).
*
* When the function URL was created, in ISO-8601 format
* (YYYY-MM-DDThh:mm:ss.sTZD).
*
* When the function URL was created, in ISO-8601 format
* (YYYY-MM-DDThh:mm:ss.sTZD).
*
* Use one of the following options:
*
*
* AWS_IAM
if you want to restrict
* access to authenticated 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.
*
*
*/
private String invokeMode;
/**
* BUFFERED
– This is the default option. Lambda invokes your function using the Invoke
* API operation. Invocation results are available when the payload is complete. The maximum payload size is 6 MB.
* RESPONSE_STREAM
– Your function streams payload results as they become available. Lambda invokes
* your function using the InvokeWithResponseStream
API operation. The maximum response payload size is
* 20 MB, however, you can request a quota
* increase.
* AWS_IAM
if you want to restrict
* access to authenticated 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.
* AWS_IAM
if you want to
* restrict access to authenticated 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.
* @see FunctionUrlAuthType
*/
public void setAuthType(String authType) {
this.authType = authType;
}
/**
* AWS_IAM
if you want to restrict
* access to authenticated 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.
* AWS_IAM
if you want to
* restrict access to authenticated 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.
* @see FunctionUrlAuthType
*/
public String getAuthType() {
return this.authType;
}
/**
* AWS_IAM
if you want to restrict
* access to authenticated 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.
* AWS_IAM
if you want to
* restrict access to authenticated 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.
* @return Returns a reference to this object so that method calls can be chained together.
* @see FunctionUrlAuthType
*/
public CreateFunctionUrlConfigResult withAuthType(String authType) {
setAuthType(authType);
return this;
}
/**
* AWS_IAM
if you want to restrict
* access to authenticated 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.
* AWS_IAM
if you want to
* restrict access to authenticated 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.
* @return Returns a reference to this object so that method calls can be chained together.
* @see FunctionUrlAuthType
*/
public CreateFunctionUrlConfigResult withAuthType(FunctionUrlAuthType authType) {
this.authType = authType.toString();
return this;
}
/**
*
*
*
* @param invokeMode
* Use one of the following options:BUFFERED
– This is the default option. Lambda invokes your function using the Invoke
* API operation. Invocation results are available when the payload is complete. The maximum payload size is 6 MB.
* RESPONSE_STREAM
– Your function streams payload results as they become available. Lambda invokes
* your function using the InvokeWithResponseStream
API operation. The maximum response payload size is
* 20 MB, however, you can request a quota
* increase.
*
* BUFFERED
– This is the default option. Lambda invokes your function using the
* Invoke
API operation. Invocation results are available when the payload is complete. The
* maximum payload size is 6 MB.
*
* RESPONSE_STREAM
– Your function streams payload results as they become available. Lambda
* invokes your function using the InvokeWithResponseStream
API operation. The maximum response
* payload size is 20 MB, however, you can request a
* quota increase.
*
* Use one of the following options: *
*
* BUFFERED
– This is the default option. Lambda invokes your function using the Invoke
* API operation. Invocation results are available when the payload is complete. The maximum payload size is 6 MB.
*
* RESPONSE_STREAM
– Your function streams payload results as they become available. Lambda invokes
* your function using the InvokeWithResponseStream
API operation. The maximum response payload size is
* 20 MB, however, you can request a quota
* increase.
*
* BUFFERED
– This is the default option. Lambda invokes your function using the
* Invoke
API operation. Invocation results are available when the payload is complete. The
* maximum payload size is 6 MB.
*
* RESPONSE_STREAM
– Your function streams payload results as they become available. Lambda
* invokes your function using the InvokeWithResponseStream
API operation. The maximum response
* payload size is 20 MB, however, you can request a
* quota increase.
*
* Use one of the following options: *
*
* BUFFERED
– This is the default option. Lambda invokes your function using the Invoke
* API operation. Invocation results are available when the payload is complete. The maximum payload size is 6 MB.
*
* RESPONSE_STREAM
– Your function streams payload results as they become available. Lambda invokes
* your function using the InvokeWithResponseStream
API operation. The maximum response payload size is
* 20 MB, however, you can request a quota
* increase.
*
* BUFFERED
– This is the default option. Lambda invokes your function using the
* Invoke
API operation. Invocation results are available when the payload is complete. The
* maximum payload size is 6 MB.
*
* RESPONSE_STREAM
– Your function streams payload results as they become available. Lambda
* invokes your function using the InvokeWithResponseStream
API operation. The maximum response
* payload size is 20 MB, however, you can request a
* quota increase.
*
* Use one of the following options: *
*
* BUFFERED
– This is the default option. Lambda invokes your function using the Invoke
* API operation. Invocation results are available when the payload is complete. The maximum payload size is 6 MB.
*
* RESPONSE_STREAM
– Your function streams payload results as they become available. Lambda invokes
* your function using the InvokeWithResponseStream
API operation. The maximum response payload size is
* 20 MB, however, you can request a quota
* increase.
*
* BUFFERED
– This is the default option. Lambda invokes your function using the
* Invoke
API operation. Invocation results are available when the payload is complete. The
* maximum payload size is 6 MB.
*
* RESPONSE_STREAM
– Your function streams payload results as they become available. Lambda
* invokes your function using the InvokeWithResponseStream
API operation. The maximum response
* payload size is 20 MB, however, you can request a
* quota increase.
*