# AutoSubscriptionConfigurationProperty

Subscription configuration information for an Amazon Q Business application using IAM identity federation for user management.

- Source: Generated at build time
- Type last changed: v2.157.0 · 10 Sep 2024

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_qbusiness as qbusiness } from 'aws-cdk-lib';
const autoSubscriptionConfigurationProperty: qbusiness.CfnApplication.AutoSubscriptionConfigurationProperty = {
  autoSubscribe: 'autoSubscribe',

  // the properties below are optional
  defaultSubscriptionType: 'defaultSubscriptionType',
};
```

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_qbusiness as qbusiness

auto_subscription_configuration_property = qbusiness.CfnApplication.AutoSubscriptionConfigurationProperty(
    auto_subscribe="autoSubscribe",

    # the properties below are optional
    default_subscription_type="defaultSubscriptionType"
)
```

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.qbusiness.*;

AutoSubscriptionConfigurationProperty autoSubscriptionConfigurationProperty = AutoSubscriptionConfigurationProperty.builder()
        .autoSubscribe("autoSubscribe")

        // the properties below are optional
        .defaultSubscriptionType("defaultSubscriptionType")
        .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.QBusiness;

var autoSubscriptionConfigurationProperty = new AutoSubscriptionConfigurationProperty {
    AutoSubscribe = "autoSubscribe",

    // the properties below are optional
    DefaultSubscriptionType = "defaultSubscriptionType"
};
```

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"

autoSubscriptionConfigurationProperty := &AutoSubscriptionConfigurationProperty{
	AutoSubscribe: jsii.String("autoSubscribe"),

	// the properties below are optional
	DefaultSubscriptionType: jsii.String("defaultSubscriptionType"),
}
```

## Properties

- `autoSubscribe`: string (required) — Describes whether automatic subscriptions are enabled for an Amazon Q Business application using IAM identity federation for user management.

- `defaultSubscriptionType`: string — Describes the default subscription type assigned to an Amazon Q Business application using IAM identity federation for user management.

  If the value for `autoSubscribe` is set to `ENABLED` you must select a value for this field.
