published on Wednesday, Mar 11, 2026 by Pulumi
published on Wednesday, Mar 11, 2026 by Pulumi
Manages an AWS SESv2 (Simple Email V2) Tenant Resource Association.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.sesv2.TenantResourceAssociation("example", {
tenantName: "example-tenant",
resourceArn: "arn:aws:ses:us-east-1:123456789012:configuration-set/example",
});
import pulumi
import pulumi_aws as aws
example = aws.sesv2.TenantResourceAssociation("example",
tenant_name="example-tenant",
resource_arn="arn:aws:ses:us-east-1:123456789012:configuration-set/example")
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/sesv2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := sesv2.NewTenantResourceAssociation(ctx, "example", &sesv2.TenantResourceAssociationArgs{
TenantName: pulumi.String("example-tenant"),
ResourceArn: pulumi.String("arn:aws:ses:us-east-1:123456789012:configuration-set/example"),
})
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 example = new Aws.SesV2.TenantResourceAssociation("example", new()
{
TenantName = "example-tenant",
ResourceArn = "arn:aws:ses:us-east-1:123456789012:configuration-set/example",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.sesv2.TenantResourceAssociation;
import com.pulumi.aws.sesv2.TenantResourceAssociationArgs;
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 example = new TenantResourceAssociation("example", TenantResourceAssociationArgs.builder()
.tenantName("example-tenant")
.resourceArn("arn:aws:ses:us-east-1:123456789012:configuration-set/example")
.build());
}
}
resources:
example:
type: aws:sesv2:TenantResourceAssociation
properties:
tenantName: example-tenant
resourceArn: arn:aws:ses:us-east-1:123456789012:configuration-set/example
Create TenantResourceAssociation Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new TenantResourceAssociation(name: string, args: TenantResourceAssociationArgs, opts?: CustomResourceOptions);@overload
def TenantResourceAssociation(resource_name: str,
args: TenantResourceAssociationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def TenantResourceAssociation(resource_name: str,
opts: Optional[ResourceOptions] = None,
resource_arn: Optional[str] = None,
tenant_name: Optional[str] = None,
region: Optional[str] = None)func NewTenantResourceAssociation(ctx *Context, name string, args TenantResourceAssociationArgs, opts ...ResourceOption) (*TenantResourceAssociation, error)public TenantResourceAssociation(string name, TenantResourceAssociationArgs args, CustomResourceOptions? opts = null)
public TenantResourceAssociation(String name, TenantResourceAssociationArgs args)
public TenantResourceAssociation(String name, TenantResourceAssociationArgs args, CustomResourceOptions options)
type: aws:sesv2:TenantResourceAssociation
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 TenantResourceAssociationArgs
- 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 TenantResourceAssociationArgs
- 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 TenantResourceAssociationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TenantResourceAssociationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TenantResourceAssociationArgs
- 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 tenantResourceAssociationResource = new Aws.SesV2.TenantResourceAssociation("tenantResourceAssociationResource", new()
{
ResourceArn = "string",
TenantName = "string",
Region = "string",
});
example, err := sesv2.NewTenantResourceAssociation(ctx, "tenantResourceAssociationResource", &sesv2.TenantResourceAssociationArgs{
ResourceArn: pulumi.String("string"),
TenantName: pulumi.String("string"),
Region: pulumi.String("string"),
})
var tenantResourceAssociationResource = new TenantResourceAssociation("tenantResourceAssociationResource", TenantResourceAssociationArgs.builder()
.resourceArn("string")
.tenantName("string")
.region("string")
.build());
tenant_resource_association_resource = aws.sesv2.TenantResourceAssociation("tenantResourceAssociationResource",
resource_arn="string",
tenant_name="string",
region="string")
const tenantResourceAssociationResource = new aws.sesv2.TenantResourceAssociation("tenantResourceAssociationResource", {
resourceArn: "string",
tenantName: "string",
region: "string",
});
type: aws:sesv2:TenantResourceAssociation
properties:
region: string
resourceArn: string
tenantName: string
TenantResourceAssociation 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 TenantResourceAssociation resource accepts the following input properties:
- Resource
Arn string ARN of the SES resource to associate with the tenant.
The following arguments are optional:
- Tenant
Name string - Name of SES Tenant.
- Region string
- AWS region for SESv2 operations. If not specified, the default provider region is used.
- Resource
Arn string ARN of the SES resource to associate with the tenant.
The following arguments are optional:
- Tenant
Name string - Name of SES Tenant.
- Region string
- AWS region for SESv2 operations. If not specified, the default provider region is used.
- resource
Arn String ARN of the SES resource to associate with the tenant.
The following arguments are optional:
- tenant
Name String - Name of SES Tenant.
- region String
- AWS region for SESv2 operations. If not specified, the default provider region is used.
- resource
Arn string ARN of the SES resource to associate with the tenant.
The following arguments are optional:
- tenant
Name string - Name of SES Tenant.
- region string
- AWS region for SESv2 operations. If not specified, the default provider region is used.
- resource_
arn str ARN of the SES resource to associate with the tenant.
The following arguments are optional:
- tenant_
name str - Name of SES Tenant.
- region str
- AWS region for SESv2 operations. If not specified, the default provider region is used.
- resource
Arn String ARN of the SES resource to associate with the tenant.
The following arguments are optional:
- tenant
Name String - Name of SES Tenant.
- region String
- AWS region for SESv2 operations. If not specified, the default provider region is used.
Outputs
All input properties are implicitly available as output properties. Additionally, the TenantResourceAssociation resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing TenantResourceAssociation Resource
Get an existing TenantResourceAssociation 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?: TenantResourceAssociationState, opts?: CustomResourceOptions): TenantResourceAssociation@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
region: Optional[str] = None,
resource_arn: Optional[str] = None,
tenant_name: Optional[str] = None) -> TenantResourceAssociationfunc GetTenantResourceAssociation(ctx *Context, name string, id IDInput, state *TenantResourceAssociationState, opts ...ResourceOption) (*TenantResourceAssociation, error)public static TenantResourceAssociation Get(string name, Input<string> id, TenantResourceAssociationState? state, CustomResourceOptions? opts = null)public static TenantResourceAssociation get(String name, Output<String> id, TenantResourceAssociationState state, CustomResourceOptions options)resources: _: type: aws:sesv2:TenantResourceAssociation get: id: ${id}- 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.
- Region string
- AWS region for SESv2 operations. If not specified, the default provider region is used.
- Resource
Arn string ARN of the SES resource to associate with the tenant.
The following arguments are optional:
- Tenant
Name string - Name of SES Tenant.
- Region string
- AWS region for SESv2 operations. If not specified, the default provider region is used.
- Resource
Arn string ARN of the SES resource to associate with the tenant.
The following arguments are optional:
- Tenant
Name string - Name of SES Tenant.
- region String
- AWS region for SESv2 operations. If not specified, the default provider region is used.
- resource
Arn String ARN of the SES resource to associate with the tenant.
The following arguments are optional:
- tenant
Name String - Name of SES Tenant.
- region string
- AWS region for SESv2 operations. If not specified, the default provider region is used.
- resource
Arn string ARN of the SES resource to associate with the tenant.
The following arguments are optional:
- tenant
Name string - Name of SES Tenant.
- region str
- AWS region for SESv2 operations. If not specified, the default provider region is used.
- resource_
arn str ARN of the SES resource to associate with the tenant.
The following arguments are optional:
- tenant_
name str - Name of SES Tenant.
- region String
- AWS region for SESv2 operations. If not specified, the default provider region is used.
- resource
Arn String ARN of the SES resource to associate with the tenant.
The following arguments are optional:
- tenant
Name String - Name of SES Tenant.
Import
Using pulumi import, import SESv2 (Simple Email V2) Tenant Resource Association using the tenant_name and resource_arn separated by |. For example:
$ pulumi import aws:sesv2/tenantResourceAssociation:TenantResourceAssociation example "example-tenant|arn:aws:ses:us-east-1:123456789012:configuration-set/example"
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
awsTerraform Provider.
published on Wednesday, Mar 11, 2026 by Pulumi
