# ReceiptRuleAttributes

Properties of a reference to an existing receipt rule.

Used as argument in: [ReceiptRule.fromReceiptRuleAttributes](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ses.ReceiptRule.html#fromreceiptruleattributes)

- Source: [`aws-ses/lib/receipt-rule.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/aws-cdk-lib/aws-ses/lib/receipt-rule.ts#L112)
- Type last changed: v2.268.0 · 2 Sep 2026

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ses as ses } from 'aws-cdk-lib';
import { aws_ses as interfaces_ses } from 'aws-cdk-lib/interfaces';

declare const receiptRuleSetRef: interfaces_ses.IReceiptRuleSetRef;
const receiptRuleAttributes: ses.ReceiptRuleAttributes = {
  receiptRuleName: 'receiptRuleName',
  ruleSet: receiptRuleSetRef,
};
```

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_ses as ses
from aws_cdk.interfaces import aws_ses as interfaces_ses

# receipt_rule_set_ref: interfaces_ses.IReceiptRuleSetRef

receipt_rule_attributes = ses.ReceiptRuleAttributes(
    receipt_rule_name="receiptRuleName",
    rule_set=receipt_rule_set_ref
)
```

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.ses.*;
import software.amazon.awscdk.interfaces.ses.*;

IReceiptRuleSetRef receiptRuleSetRef;

ReceiptRuleAttributes receiptRuleAttributes = ReceiptRuleAttributes.builder()
        .receiptRuleName("receiptRuleName")
        .ruleSet(receiptRuleSetRef)
        .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.SES;
using Amazon.CDK.Interfaces.SES;

IReceiptRuleSetRef receiptRuleSetRef;

var receiptRuleAttributes = new ReceiptRuleAttributes {
    ReceiptRuleName = "receiptRuleName",
    RuleSet = receiptRuleSetRef
};
```

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"
import "github.com/aws/aws-cdk-go/awscdk"

var receiptRuleSetRef IReceiptRuleSetRef

receiptRuleAttributes := &ReceiptRuleAttributes{
	ReceiptRuleName: jsii.String("receiptRuleName"),
	RuleSet: receiptRuleSetRef,
}
```

## Properties

- `receiptRuleName`: string (required) — The name of the receipt rule.

- `ruleSet`: [IReceiptRuleSetRef](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.interfaces.aws_ses.IReceiptRuleSetRef.html) (required) — The rule set that the receipt rule belongs to.
