# SubscriberProperty

The `Subscriber` property type specifies who to notify for a Billing and Cost Management budget notification.

The subscriber consists of a subscription type, and either an Amazon SNS topic or an email address.

For example, an email subscriber would have the following parameters:

- A `subscriptionType` of `EMAIL`
- An `address` of `example@example.com`

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 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_budgets as budgets } from 'aws-cdk-lib';
const subscriberProperty: budgets.CfnBudget.SubscriberProperty = {
  address: 'address',
  subscriptionType: 'subscriptionType',
};
```

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_budgets as budgets

subscriber_property = budgets.CfnBudget.SubscriberProperty(
    address="address",
    subscription_type="subscriptionType"
)
```

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

SubscriberProperty subscriberProperty = SubscriberProperty.builder()
        .address("address")
        .subscriptionType("subscriptionType")
        .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.Budgets;

var subscriberProperty = new SubscriberProperty {
    Address = "address",
    SubscriptionType = "subscriptionType"
};
```

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"

subscriberProperty := &SubscriberProperty{
	Address: jsii.String("address"),
	SubscriptionType: jsii.String("subscriptionType"),
}
```

## Properties

- `address`: string (required) — The address that AWS sends budget notifications to, either an SNS topic or an email.

  When you create a subscriber, the value of `Address` can't contain line breaks.

- `subscriptionType`: string (required) — The type of notification that AWS sends to a subscriber.
