ContactChannel

class ContactChannel : KotlinCustomResource

Resource for managing an AWS SSM Contacts Contact Channel.

Example Usage

Basic Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.ssmcontacts.ContactChannel;
import com.pulumi.aws.ssmcontacts.ContactChannelArgs;
import com.pulumi.aws.ssmcontacts.inputs.ContactChannelDeliveryAddressArgs;
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 ContactChannel("example", ContactChannelArgs.builder()
.contactId("arn:aws:ssm-contacts:us-west-2:123456789012:contact/contactalias")
.deliveryAddress(ContactChannelDeliveryAddressArgs.builder()
.simpleAddress("email@example.com")
.build())
.type("EMAIL")
.build());
}
}

Usage with SSM Contact

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.ssmcontacts.Contact;
import com.pulumi.aws.ssmcontacts.ContactArgs;
import com.pulumi.aws.ssmcontacts.ContactChannel;
import com.pulumi.aws.ssmcontacts.ContactChannelArgs;
import com.pulumi.aws.ssmcontacts.inputs.ContactChannelDeliveryAddressArgs;
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 exampleContact = new Contact("exampleContact", ContactArgs.builder()
.alias("example_contact")
.type("PERSONAL")
.build());
var example = new ContactChannel("example", ContactChannelArgs.builder()
.contactId(exampleContact.arn())
.deliveryAddress(ContactChannelDeliveryAddressArgs.builder()
.simpleAddress("email@example.com")
.build())
.type("EMAIL")
.build());
}
}

Import

Import SSM Contact Channel using the ARN, e.g.,

$ pulumi import aws:ssmcontacts/contactChannel:ContactChannel example arn:aws:ssm-contacts:us-west-2:123456789012:contact-channel/example

Properties

Link copied to clipboard

Whether the contact channel is activated. The contact channel must be activated to use it to engage the contact. One of ACTIVATED or NOT_ACTIVATED.

Link copied to clipboard
val arn: Output<String>

Amazon Resource Name (ARN) of the contact channel.

Link copied to clipboard
val contactId: Output<String>

Amazon Resource Name (ARN) of the AWS SSM Contact that the contact channel belongs to.

Link copied to clipboard

Block that contains contact engagement details. See details below.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val name: Output<String>

Name of the contact channel.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val type: Output<String>

Type of the contact channel. One of SMS, VOICE or EMAIL.

Link copied to clipboard
val urn: Output<String>