1. Packages
  2. AWS
  3. API Docs
  4. notifications
  5. ManagedNotificationAccountContactAssociation
AWS v7.19.0 published on Friday, Feb 6, 2026 by Pulumi
aws logo
AWS v7.19.0 published on Friday, Feb 6, 2026 by Pulumi

    Resource for managing an AWS User Notifications Managed Notification Account Contact Association. This resource associates an account contact with a managed notification configuration.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = new aws.notifications.ManagedNotificationAccountContactAssociation("example", {
        contactIdentifier: "ACCOUNT_PRIMARY",
        managedNotificationConfigurationArn: "arn:aws:notifications::123456789012:managed-notification-configuration/category/AWS-Health/sub-category/Security",
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.notifications.ManagedNotificationAccountContactAssociation("example",
        contact_identifier="ACCOUNT_PRIMARY",
        managed_notification_configuration_arn="arn:aws:notifications::123456789012:managed-notification-configuration/category/AWS-Health/sub-category/Security")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/notifications"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := notifications.NewManagedNotificationAccountContactAssociation(ctx, "example", &notifications.ManagedNotificationAccountContactAssociationArgs{
    			ContactIdentifier:                   pulumi.String("ACCOUNT_PRIMARY"),
    			ManagedNotificationConfigurationArn: pulumi.String("arn:aws:notifications::123456789012:managed-notification-configuration/category/AWS-Health/sub-category/Security"),
    		})
    		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.Notifications.ManagedNotificationAccountContactAssociation("example", new()
        {
            ContactIdentifier = "ACCOUNT_PRIMARY",
            ManagedNotificationConfigurationArn = "arn:aws:notifications::123456789012:managed-notification-configuration/category/AWS-Health/sub-category/Security",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.notifications.ManagedNotificationAccountContactAssociation;
    import com.pulumi.aws.notifications.ManagedNotificationAccountContactAssociationArgs;
    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 ManagedNotificationAccountContactAssociation("example", ManagedNotificationAccountContactAssociationArgs.builder()
                .contactIdentifier("ACCOUNT_PRIMARY")
                .managedNotificationConfigurationArn("arn:aws:notifications::123456789012:managed-notification-configuration/category/AWS-Health/sub-category/Security")
                .build());
    
        }
    }
    
    resources:
      example:
        type: aws:notifications:ManagedNotificationAccountContactAssociation
        properties:
          contactIdentifier: ACCOUNT_PRIMARY
          managedNotificationConfigurationArn: arn:aws:notifications::123456789012:managed-notification-configuration/category/AWS-Health/sub-category/Security
    

    Create ManagedNotificationAccountContactAssociation Resource

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

    Constructor syntax

    new ManagedNotificationAccountContactAssociation(name: string, args: ManagedNotificationAccountContactAssociationArgs, opts?: CustomResourceOptions);
    @overload
    def ManagedNotificationAccountContactAssociation(resource_name: str,
                                                     args: ManagedNotificationAccountContactAssociationArgs,
                                                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def ManagedNotificationAccountContactAssociation(resource_name: str,
                                                     opts: Optional[ResourceOptions] = None,
                                                     contact_identifier: Optional[str] = None,
                                                     managed_notification_configuration_arn: Optional[str] = None)
    func NewManagedNotificationAccountContactAssociation(ctx *Context, name string, args ManagedNotificationAccountContactAssociationArgs, opts ...ResourceOption) (*ManagedNotificationAccountContactAssociation, error)
    public ManagedNotificationAccountContactAssociation(string name, ManagedNotificationAccountContactAssociationArgs args, CustomResourceOptions? opts = null)
    public ManagedNotificationAccountContactAssociation(String name, ManagedNotificationAccountContactAssociationArgs args)
    public ManagedNotificationAccountContactAssociation(String name, ManagedNotificationAccountContactAssociationArgs args, CustomResourceOptions options)
    
    type: aws:notifications:ManagedNotificationAccountContactAssociation
    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 ManagedNotificationAccountContactAssociationArgs
    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 ManagedNotificationAccountContactAssociationArgs
    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 ManagedNotificationAccountContactAssociationArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ManagedNotificationAccountContactAssociationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ManagedNotificationAccountContactAssociationArgs
    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 managedNotificationAccountContactAssociationResource = new Aws.Notifications.ManagedNotificationAccountContactAssociation("managedNotificationAccountContactAssociationResource", new()
    {
        ContactIdentifier = "string",
        ManagedNotificationConfigurationArn = "string",
    });
    
    example, err := notifications.NewManagedNotificationAccountContactAssociation(ctx, "managedNotificationAccountContactAssociationResource", &notifications.ManagedNotificationAccountContactAssociationArgs{
    	ContactIdentifier:                   pulumi.String("string"),
    	ManagedNotificationConfigurationArn: pulumi.String("string"),
    })
    
    var managedNotificationAccountContactAssociationResource = new ManagedNotificationAccountContactAssociation("managedNotificationAccountContactAssociationResource", ManagedNotificationAccountContactAssociationArgs.builder()
        .contactIdentifier("string")
        .managedNotificationConfigurationArn("string")
        .build());
    
    managed_notification_account_contact_association_resource = aws.notifications.ManagedNotificationAccountContactAssociation("managedNotificationAccountContactAssociationResource",
        contact_identifier="string",
        managed_notification_configuration_arn="string")
    
    const managedNotificationAccountContactAssociationResource = new aws.notifications.ManagedNotificationAccountContactAssociation("managedNotificationAccountContactAssociationResource", {
        contactIdentifier: "string",
        managedNotificationConfigurationArn: "string",
    });
    
    type: aws:notifications:ManagedNotificationAccountContactAssociation
    properties:
        contactIdentifier: string
        managedNotificationConfigurationArn: string
    

    ManagedNotificationAccountContactAssociation 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 ManagedNotificationAccountContactAssociation resource accepts the following input properties:

    ContactIdentifier string
    A unique value of an Account Contact Type to associate with the ManagedNotificationConfiguration. Valid values: ACCOUNT_PRIMARY, ACCOUNT_ALTERNATE_BILLING, ACCOUNT_ALTERNATE_OPERATIONS, ACCOUNT_ALTERNATE_SECURITY.
    ManagedNotificationConfigurationArn string
    ARN of the managed notification configuration to associate the account contact with.
    ContactIdentifier string
    A unique value of an Account Contact Type to associate with the ManagedNotificationConfiguration. Valid values: ACCOUNT_PRIMARY, ACCOUNT_ALTERNATE_BILLING, ACCOUNT_ALTERNATE_OPERATIONS, ACCOUNT_ALTERNATE_SECURITY.
    ManagedNotificationConfigurationArn string
    ARN of the managed notification configuration to associate the account contact with.
    contactIdentifier String
    A unique value of an Account Contact Type to associate with the ManagedNotificationConfiguration. Valid values: ACCOUNT_PRIMARY, ACCOUNT_ALTERNATE_BILLING, ACCOUNT_ALTERNATE_OPERATIONS, ACCOUNT_ALTERNATE_SECURITY.
    managedNotificationConfigurationArn String
    ARN of the managed notification configuration to associate the account contact with.
    contactIdentifier string
    A unique value of an Account Contact Type to associate with the ManagedNotificationConfiguration. Valid values: ACCOUNT_PRIMARY, ACCOUNT_ALTERNATE_BILLING, ACCOUNT_ALTERNATE_OPERATIONS, ACCOUNT_ALTERNATE_SECURITY.
    managedNotificationConfigurationArn string
    ARN of the managed notification configuration to associate the account contact with.
    contact_identifier str
    A unique value of an Account Contact Type to associate with the ManagedNotificationConfiguration. Valid values: ACCOUNT_PRIMARY, ACCOUNT_ALTERNATE_BILLING, ACCOUNT_ALTERNATE_OPERATIONS, ACCOUNT_ALTERNATE_SECURITY.
    managed_notification_configuration_arn str
    ARN of the managed notification configuration to associate the account contact with.
    contactIdentifier String
    A unique value of an Account Contact Type to associate with the ManagedNotificationConfiguration. Valid values: ACCOUNT_PRIMARY, ACCOUNT_ALTERNATE_BILLING, ACCOUNT_ALTERNATE_OPERATIONS, ACCOUNT_ALTERNATE_SECURITY.
    managedNotificationConfigurationArn String
    ARN of the managed notification configuration to associate the account contact with.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ManagedNotificationAccountContactAssociation 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 ManagedNotificationAccountContactAssociation Resource

    Get an existing ManagedNotificationAccountContactAssociation 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?: ManagedNotificationAccountContactAssociationState, opts?: CustomResourceOptions): ManagedNotificationAccountContactAssociation
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            contact_identifier: Optional[str] = None,
            managed_notification_configuration_arn: Optional[str] = None) -> ManagedNotificationAccountContactAssociation
    func GetManagedNotificationAccountContactAssociation(ctx *Context, name string, id IDInput, state *ManagedNotificationAccountContactAssociationState, opts ...ResourceOption) (*ManagedNotificationAccountContactAssociation, error)
    public static ManagedNotificationAccountContactAssociation Get(string name, Input<string> id, ManagedNotificationAccountContactAssociationState? state, CustomResourceOptions? opts = null)
    public static ManagedNotificationAccountContactAssociation get(String name, Output<String> id, ManagedNotificationAccountContactAssociationState state, CustomResourceOptions options)
    resources:  _:    type: aws:notifications:ManagedNotificationAccountContactAssociation    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.
    The following state arguments are supported:
    ContactIdentifier string
    A unique value of an Account Contact Type to associate with the ManagedNotificationConfiguration. Valid values: ACCOUNT_PRIMARY, ACCOUNT_ALTERNATE_BILLING, ACCOUNT_ALTERNATE_OPERATIONS, ACCOUNT_ALTERNATE_SECURITY.
    ManagedNotificationConfigurationArn string
    ARN of the managed notification configuration to associate the account contact with.
    ContactIdentifier string
    A unique value of an Account Contact Type to associate with the ManagedNotificationConfiguration. Valid values: ACCOUNT_PRIMARY, ACCOUNT_ALTERNATE_BILLING, ACCOUNT_ALTERNATE_OPERATIONS, ACCOUNT_ALTERNATE_SECURITY.
    ManagedNotificationConfigurationArn string
    ARN of the managed notification configuration to associate the account contact with.
    contactIdentifier String
    A unique value of an Account Contact Type to associate with the ManagedNotificationConfiguration. Valid values: ACCOUNT_PRIMARY, ACCOUNT_ALTERNATE_BILLING, ACCOUNT_ALTERNATE_OPERATIONS, ACCOUNT_ALTERNATE_SECURITY.
    managedNotificationConfigurationArn String
    ARN of the managed notification configuration to associate the account contact with.
    contactIdentifier string
    A unique value of an Account Contact Type to associate with the ManagedNotificationConfiguration. Valid values: ACCOUNT_PRIMARY, ACCOUNT_ALTERNATE_BILLING, ACCOUNT_ALTERNATE_OPERATIONS, ACCOUNT_ALTERNATE_SECURITY.
    managedNotificationConfigurationArn string
    ARN of the managed notification configuration to associate the account contact with.
    contact_identifier str
    A unique value of an Account Contact Type to associate with the ManagedNotificationConfiguration. Valid values: ACCOUNT_PRIMARY, ACCOUNT_ALTERNATE_BILLING, ACCOUNT_ALTERNATE_OPERATIONS, ACCOUNT_ALTERNATE_SECURITY.
    managed_notification_configuration_arn str
    ARN of the managed notification configuration to associate the account contact with.
    contactIdentifier String
    A unique value of an Account Contact Type to associate with the ManagedNotificationConfiguration. Valid values: ACCOUNT_PRIMARY, ACCOUNT_ALTERNATE_BILLING, ACCOUNT_ALTERNATE_OPERATIONS, ACCOUNT_ALTERNATE_SECURITY.
    managedNotificationConfigurationArn String
    ARN of the managed notification configuration to associate the account contact with.

    Import

    Using pulumi import, import User Notifications Managed Notification Account Contact Association using the managed_notification_configuration_arn,contact_identifier format. For example:

    $ pulumi import aws:notifications/managedNotificationAccountContactAssociation:ManagedNotificationAccountContactAssociation example arn:aws:notifications::123456789012:managed-notification-configuration/category/AWS-Health/sub-category/Security,ACCOUNT_PRIMARY
    

    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
    AWS v7.19.0 published on Friday, Feb 6, 2026 by Pulumi
      Meet Neo: Your AI Platform Teammate