Class ManagedNotificationAccountContactAssociation


  • public class ManagedNotificationAccountContactAssociation
    extends com.pulumi.resources.CustomResource
    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
     
     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.ArrayList;
     import java.util.Arrays;
     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());
     
         }
     }
     
     
    ## Import Using `pulumi import`, import User Notifications Managed Notification Account Contact Association using the `managed_notification_configuration_arn,contact_identifier` format. For example: ```sh $ pulumi import aws:notifications/managedNotificationAccountContactAssociation:ManagedNotificationAccountContactAssociation example arn:aws:notifications::123456789012:managed-notification-configuration/category/AWS-Health/sub-category/Security,ACCOUNT_PRIMARY ```
    • Constructor Detail

      • ManagedNotificationAccountContactAssociation

        public ManagedNotificationAccountContactAssociation​(java.lang.String name)
        Parameters:
        name - The _unique_ name of the resulting resource.
      • ManagedNotificationAccountContactAssociation

        public ManagedNotificationAccountContactAssociation​(java.lang.String name,
                                                            ManagedNotificationAccountContactAssociationArgs args)
        Parameters:
        name - The _unique_ name of the resulting resource.
        args - The arguments to use to populate this resource's properties.
      • ManagedNotificationAccountContactAssociation

        public ManagedNotificationAccountContactAssociation​(java.lang.String name,
                                                            ManagedNotificationAccountContactAssociationArgs args,
                                                            @Nullable
                                                            com.pulumi.resources.CustomResourceOptions options)
        Parameters:
        name - The _unique_ name of the resulting resource.
        args - The arguments to use to populate this resource's properties.
        options - A bag of options that control this resource's behavior.
    • Method Detail

      • contactIdentifier

        public com.pulumi.core.Output<java.lang.String> contactIdentifier()
        Returns:
        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

        public com.pulumi.core.Output<java.lang.String> managedNotificationConfigurationArn()
        Returns:
        ARN of the managed notification configuration to associate the account contact with.
      • get

        public static ManagedNotificationAccountContactAssociation get​(java.lang.String name,
                                                                       com.pulumi.core.Output<java.lang.String> id,
                                                                       @Nullable
                                                                       ManagedNotificationAccountContactAssociationState state,
                                                                       @Nullable
                                                                       com.pulumi.resources.CustomResourceOptions options)
        Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
        Parameters:
        name - The _unique_ name of the resulting resource.
        id - The _unique_ provider ID of the resource to lookup.
        state -
        options - Optional settings to control the behavior of the CustomResource.