Skip to content
v2.278.0

FunctionUrlConfigProperty Struct ​

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_sam as sam } from 'aws-cdk-lib';
const functionUrlConfigProperty: sam.CfnFunction.FunctionUrlConfigProperty = {
  authType: 'authType',

  // the properties below are optional
  cors: 'cors',
  invokeMode: 'invokeMode',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_sam as sam

function_url_config_property = sam.CfnFunction.FunctionUrlConfigProperty(
    auth_type="authType",

    # the properties below are optional
    cors="cors",
    invoke_mode="invokeMode"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.sam.*;

FunctionUrlConfigProperty functionUrlConfigProperty = FunctionUrlConfigProperty.builder()
        .authType("authType")

        // the properties below are optional
        .cors("cors")
        .invokeMode("invokeMode")
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.SAM;

var functionUrlConfigProperty = new FunctionUrlConfigProperty {
    AuthType = "authType",

    // the properties below are optional
    Cors = "cors",
    InvokeMode = "invokeMode"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

functionUrlConfigProperty := &FunctionUrlConfigProperty{
	AuthType: jsii.String("authType"),

	// the properties below are optional
	Cors: jsii.String("cors"),
	InvokeMode: jsii.String("invokeMode"),
}

Properties ​

authTypestringauth_typestrauthTypeStringAuthTypestringAuthType*string required #
corsoptionalstring | IResolvable | CfnFunction.CorsConfigurationPropertycorsoptionaltyping.Union[str, IResolvable, CorsConfigurationProperty]corsoptionalStringCorsoptionalstringCorsoptionalinterface{} #
invokeModeoptionalstringinvoke_modeoptionalstrinvokeModeoptionalStringInvokeModeoptionalstringInvokeModeoptional*string #