Package com.pulumi.aws.notifications
Class ManagedNotificationAdditionalChannelAssociation
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.aws.notifications.ManagedNotificationAdditionalChannelAssociation
-
public class ManagedNotificationAdditionalChannelAssociation extends com.pulumi.resources.CustomResourceResource for managing an AWS User Notifications Managed Notification Additional Channel Association. This resource associates a channel (such as an email contact, mobile device, or chat channel) with a managed notification. ## Example Usage ### Basic Usage
## Import Using `pulumi import`, import User Notifications Managed Notification Additional Channel Association using the `managed_notification_arn,channel_arn` format. For example: ```sh $ pulumi import aws:notifications/managedNotificationAdditionalChannelAssociation:ManagedNotificationAdditionalChannelAssociation example arn:aws:notifications::123456789012:managed-notification-configuration/category/AWS-Health/sub-category/Security,arn:aws:notificationscontacts:us-west-2:123456789012:emailcontact:example-contact ```package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.aws.notifications.ContactsEmailContact; import com.pulumi.aws.notifications.ContactsEmailContactArgs; import com.pulumi.aws.notifications.ManagedNotificationAdditionalChannelAssociation; import com.pulumi.aws.notifications.ManagedNotificationAdditionalChannelAssociationArgs; 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 ContactsEmailContact("example", ContactsEmailContactArgs.builder() .name("example-contact") .emailAddress("example@example.com") .build()); var exampleManagedNotificationAdditionalChannelAssociation = new ManagedNotificationAdditionalChannelAssociation("exampleManagedNotificationAdditionalChannelAssociation", ManagedNotificationAdditionalChannelAssociationArgs.builder() .channelArn(example.arn()) .managedNotificationArn("arn:aws:notifications::123456789012:managed-notification-configuration/category/AWS-Health/sub-category/Security") .build());}}
-
-
Constructor Summary
Constructors Constructor Description ManagedNotificationAdditionalChannelAssociation(java.lang.String name)ManagedNotificationAdditionalChannelAssociation(java.lang.String name, ManagedNotificationAdditionalChannelAssociationArgs args)ManagedNotificationAdditionalChannelAssociation(java.lang.String name, ManagedNotificationAdditionalChannelAssociationArgs args, com.pulumi.resources.CustomResourceOptions options)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.pulumi.core.Output<java.lang.String>channelArn()static ManagedNotificationAdditionalChannelAssociationget(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, ManagedNotificationAdditionalChannelAssociationState state, 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.com.pulumi.core.Output<java.lang.String>managedNotificationArn()
-
-
-
Constructor Detail
-
ManagedNotificationAdditionalChannelAssociation
public ManagedNotificationAdditionalChannelAssociation(java.lang.String name)
- Parameters:
name- The _unique_ name of the resulting resource.
-
ManagedNotificationAdditionalChannelAssociation
public ManagedNotificationAdditionalChannelAssociation(java.lang.String name, ManagedNotificationAdditionalChannelAssociationArgs args)- Parameters:
name- The _unique_ name of the resulting resource.args- The arguments to use to populate this resource's properties.
-
ManagedNotificationAdditionalChannelAssociation
public ManagedNotificationAdditionalChannelAssociation(java.lang.String name, ManagedNotificationAdditionalChannelAssociationArgs 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
-
channelArn
public com.pulumi.core.Output<java.lang.String> channelArn()
- Returns:
- ARN of the channel to associate with the managed notification.
-
managedNotificationArn
public com.pulumi.core.Output<java.lang.String> managedNotificationArn()
- Returns:
- ARN of the managed notification to associate the channel with.
-
get
public static ManagedNotificationAdditionalChannelAssociation get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, @Nullable ManagedNotificationAdditionalChannelAssociationState 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.
-
-