1. Packages
  2. AWS
  3. API Docs
  4. ses
  5. ReceiptRuleSet
AWS v6.77.0 published on Wednesday, Apr 9, 2025 by Pulumi

aws.ses.ReceiptRuleSet

Explore with Pulumi AI

Provides an SES receipt rule set resource.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const main = new aws.ses.ReceiptRuleSet("main", {ruleSetName: "primary-rules"});
Copy
import pulumi
import pulumi_aws as aws

main = aws.ses.ReceiptRuleSet("main", rule_set_name="primary-rules")
Copy
package main

import (
	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/ses"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := ses.NewReceiptRuleSet(ctx, "main", &ses.ReceiptRuleSetArgs{
			RuleSetName: pulumi.String("primary-rules"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;

return await Deployment.RunAsync(() => 
{
    var main = new Aws.Ses.ReceiptRuleSet("main", new()
    {
        RuleSetName = "primary-rules",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.ses.ReceiptRuleSet;
import com.pulumi.aws.ses.ReceiptRuleSetArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var main = new ReceiptRuleSet("main", ReceiptRuleSetArgs.builder()
            .ruleSetName("primary-rules")
            .build());

    }
}
Copy
resources:
  main:
    type: aws:ses:ReceiptRuleSet
    properties:
      ruleSetName: primary-rules
Copy

Create ReceiptRuleSet Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new ReceiptRuleSet(name: string, args: ReceiptRuleSetArgs, opts?: CustomResourceOptions);
@overload
def ReceiptRuleSet(resource_name: str,
                   args: ReceiptRuleSetArgs,
                   opts: Optional[ResourceOptions] = None)

@overload
def ReceiptRuleSet(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   rule_set_name: Optional[str] = None)
func NewReceiptRuleSet(ctx *Context, name string, args ReceiptRuleSetArgs, opts ...ResourceOption) (*ReceiptRuleSet, error)
public ReceiptRuleSet(string name, ReceiptRuleSetArgs args, CustomResourceOptions? opts = null)
public ReceiptRuleSet(String name, ReceiptRuleSetArgs args)
public ReceiptRuleSet(String name, ReceiptRuleSetArgs args, CustomResourceOptions options)
type: aws:ses:ReceiptRuleSet
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. ReceiptRuleSetArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. ReceiptRuleSetArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. ReceiptRuleSetArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. ReceiptRuleSetArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. ReceiptRuleSetArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var receiptRuleSetResource = new Aws.Ses.ReceiptRuleSet("receiptRuleSetResource", new()
{
    RuleSetName = "string",
});
Copy
example, err := ses.NewReceiptRuleSet(ctx, "receiptRuleSetResource", &ses.ReceiptRuleSetArgs{
	RuleSetName: pulumi.String("string"),
})
Copy
var receiptRuleSetResource = new ReceiptRuleSet("receiptRuleSetResource", ReceiptRuleSetArgs.builder()
    .ruleSetName("string")
    .build());
Copy
receipt_rule_set_resource = aws.ses.ReceiptRuleSet("receiptRuleSetResource", rule_set_name="string")
Copy
const receiptRuleSetResource = new aws.ses.ReceiptRuleSet("receiptRuleSetResource", {ruleSetName: "string"});
Copy
type: aws:ses:ReceiptRuleSet
properties:
    ruleSetName: string
Copy

ReceiptRuleSet Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The ReceiptRuleSet resource accepts the following input properties:

RuleSetName
This property is required.
Changes to this property will trigger replacement.
string
Name of the rule set.
RuleSetName
This property is required.
Changes to this property will trigger replacement.
string
Name of the rule set.
ruleSetName
This property is required.
Changes to this property will trigger replacement.
String
Name of the rule set.
ruleSetName
This property is required.
Changes to this property will trigger replacement.
string
Name of the rule set.
rule_set_name
This property is required.
Changes to this property will trigger replacement.
str
Name of the rule set.
ruleSetName
This property is required.
Changes to this property will trigger replacement.
String
Name of the rule set.

Outputs

All input properties are implicitly available as output properties. Additionally, the ReceiptRuleSet resource produces the following output properties:

Arn string
SES receipt rule set ARN.
Id string
The provider-assigned unique ID for this managed resource.
Arn string
SES receipt rule set ARN.
Id string
The provider-assigned unique ID for this managed resource.
arn String
SES receipt rule set ARN.
id String
The provider-assigned unique ID for this managed resource.
arn string
SES receipt rule set ARN.
id string
The provider-assigned unique ID for this managed resource.
arn str
SES receipt rule set ARN.
id str
The provider-assigned unique ID for this managed resource.
arn String
SES receipt rule set ARN.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing ReceiptRuleSet Resource

Get an existing ReceiptRuleSet resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: ReceiptRuleSetState, opts?: CustomResourceOptions): ReceiptRuleSet
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        arn: Optional[str] = None,
        rule_set_name: Optional[str] = None) -> ReceiptRuleSet
func GetReceiptRuleSet(ctx *Context, name string, id IDInput, state *ReceiptRuleSetState, opts ...ResourceOption) (*ReceiptRuleSet, error)
public static ReceiptRuleSet Get(string name, Input<string> id, ReceiptRuleSetState? state, CustomResourceOptions? opts = null)
public static ReceiptRuleSet get(String name, Output<String> id, ReceiptRuleSetState state, CustomResourceOptions options)
resources:  _:    type: aws:ses:ReceiptRuleSet    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
Arn string
SES receipt rule set ARN.
RuleSetName Changes to this property will trigger replacement. string
Name of the rule set.
Arn string
SES receipt rule set ARN.
RuleSetName Changes to this property will trigger replacement. string
Name of the rule set.
arn String
SES receipt rule set ARN.
ruleSetName Changes to this property will trigger replacement. String
Name of the rule set.
arn string
SES receipt rule set ARN.
ruleSetName Changes to this property will trigger replacement. string
Name of the rule set.
arn str
SES receipt rule set ARN.
rule_set_name Changes to this property will trigger replacement. str
Name of the rule set.
arn String
SES receipt rule set ARN.
ruleSetName Changes to this property will trigger replacement. String
Name of the rule set.

Import

Using pulumi import, import SES receipt rule sets using the rule set name. For example:

$ pulumi import aws:ses/receiptRuleSet:ReceiptRuleSet my_rule_set my_rule_set_name
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
AWS Classic pulumi/pulumi-aws
License
Apache-2.0
Notes
This Pulumi package is based on the aws Terraform Provider.