ContactChannelArgs

data class ContactChannelArgs(val contactId: Output<String>? = null, val deliveryAddress: Output<ContactChannelDeliveryAddressArgs>? = null, val name: Output<String>? = null, val type: Output<String>? = null) : ConvertibleToJava<ContactChannelArgs>

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

Constructors

Link copied to clipboard
constructor(contactId: Output<String>? = null, deliveryAddress: Output<ContactChannelDeliveryAddressArgs>? = null, name: Output<String>? = null, type: Output<String>? = null)

Properties

Link copied to clipboard
val contactId: Output<String>? = null

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 name: Output<String>? = null

Name of the contact channel.

Link copied to clipboard
val type: Output<String>? = null

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

Functions

Link copied to clipboard
open override fun toJava(): ContactChannelArgs