# FunctionUrlConfigProperty

- Source: Generated at build time
- Type last changed: v2.94.0 · 1 Sep 2023

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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"
};
```

Golang:

```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

- `authType`: string (required)

- `cors`: string | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnFunction.CorsConfigurationProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_sam.CfnFunction.CorsConfigurationProperty.html)

- `invokeMode`: string
