1. Packages
  2. AWS Classic
  3. API Docs
  4. ses
  5. ReceiptRuleSet

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.40.0 published on Wednesday, Jun 12, 2024 by Pulumi

aws.ses.ReceiptRuleSet

Explore with Pulumi AI

aws logo

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.40.0 published on Wednesday, Jun 12, 2024 by Pulumi

    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"});
    
    import pulumi
    import pulumi_aws as aws
    
    main = aws.ses.ReceiptRuleSet("main", rule_set_name="primary-rules")
    
    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
    	})
    }
    
    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",
        });
    
    });
    
    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());
    
        }
    }
    
    resources:
      main:
        type: aws:ses:ReceiptRuleSet
        properties:
          ruleSetName: primary-rules
    

    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 string
    The unique name of the resource.
    args ReceiptRuleSetArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args 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 string
    The unique name of the resource.
    args ReceiptRuleSetArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ReceiptRuleSetArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ReceiptRuleSetArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

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

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

    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

    The ReceiptRuleSet resource accepts the following input properties:

    RuleSetName string
    Name of the rule set.
    RuleSetName string
    Name of the rule set.
    ruleSetName String
    Name of the rule set.
    ruleSetName string
    Name of the rule set.
    rule_set_name str
    Name of the rule set.
    ruleSetName 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)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    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
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    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
    The unique name of the resulting resource.
    id
    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
    The unique name of the resulting resource.
    id
    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 string
    Name of the rule set.
    Arn string
    SES receipt rule set ARN.
    RuleSetName string
    Name of the rule set.
    arn String
    SES receipt rule set ARN.
    ruleSetName String
    Name of the rule set.
    arn string
    SES receipt rule set ARN.
    ruleSetName string
    Name of the rule set.
    arn str
    SES receipt rule set ARN.
    rule_set_name str
    Name of the rule set.
    arn String
    SES receipt rule set ARN.
    ruleSetName 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
    

    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.
    aws logo

    Try AWS Native preview for resources not in the classic version.

    AWS Classic v6.40.0 published on Wednesday, Jun 12, 2024 by Pulumi