Contact

class Contact : KotlinCustomResource

Resource for managing an AWS SSM Contact.

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.Contact;
import com.pulumi.aws.ssmcontacts.ContactArgs;
import com.pulumi.resources.CustomResourceOptions;
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 Contact("example", ContactArgs.builder()
.alias("alias")
.type("PERSONAL")
.build(), CustomResourceOptions.builder()
.dependsOn(aws_ssmincidents_replication_set.example())
.build());
}
}

Usage With All Fields

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.resources.CustomResourceOptions;
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 Contact("example", ContactArgs.builder()
.alias("alias")
.displayName("displayName")
.type("ESCALATION")
.tags(Map.of("key", "value"))
.build(), CustomResourceOptions.builder()
.dependsOn(aws_ssmincidents_replication_set.example())
.build());
}
}

Import

Import SSM Contact using the ARN. For example

$ pulumi import aws:ssmcontacts/contact:Contact example {ARNValue}

Properties

Link copied to clipboard
val alias: Output<String>

A unique and identifiable alias for the contact or escalation plan.

Link copied to clipboard
val arn: Output<String>

The Amazon Resource Name (ARN) of the contact or escalation plan.

Link copied to clipboard
val displayName: Output<String>?

Full friendly name of the contact or escalation plan.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val tags: Output<Map<String, String>>?

Map of tags to assign to the resource.

Link copied to clipboard
val tagsAll: Output<Map<String, String>>

Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Link copied to clipboard
val type: Output<String>

The type of contact engaged. A single contact is type PERSONAL and an escalation plan is type ESCALATION. The following arguments are optional:

Link copied to clipboard
val urn: Output<String>