All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.aws.detective.Member Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

The newest version!
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.aws.detective;

import com.pulumi.aws.Utilities;
import com.pulumi.aws.detective.MemberArgs;
import com.pulumi.aws.detective.inputs.MemberState;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Export;
import com.pulumi.core.annotations.ResourceType;
import com.pulumi.core.internal.Codegen;
import java.lang.Boolean;
import java.lang.String;
import java.util.Optional;
import javax.annotation.Nullable;

/**
 * Provides a resource to manage an [Amazon Detective Member](https://docs.aws.amazon.com/detective/latest/APIReference/API_CreateMembers.html).
 * 
 * ## Example Usage
 * 
 * <!--Start PulumiCodeChooser -->
 * 
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.aws.detective.Graph;
 * import com.pulumi.aws.detective.Member;
 * import com.pulumi.aws.detective.MemberArgs;
 * 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 Graph("example");
 * 
 *         var exampleMember = new Member("exampleMember", MemberArgs.builder()
 *             .accountId("AWS ACCOUNT ID")
 *             .emailAddress("EMAIL")
 *             .graphArn(example.id())
 *             .message("Message of the invitation")
 *             .disableEmailNotification(true)
 *             .build());
 * 
 *     }
 * }
 * }
 * 
* <!--End PulumiCodeChooser --> * * ## Import * * Using `pulumi import`, import `aws_detective_member` using the ARN of the graph followed by the account ID of the member account. For example: * * ```sh * $ pulumi import aws:detective/member:Member example arn:aws:detective:us-east-1:123456789101:graph:231684d34gh74g4bae1dbc7bd807d02d/123456789012 * ``` * */ @ResourceType(type="aws:detective/member:Member") public class Member extends com.pulumi.resources.CustomResource { /** * AWS account ID for the account. * */ @Export(name="accountId", refs={String.class}, tree="[0]") private Output accountId; /** * @return AWS account ID for the account. * */ public Output accountId() { return this.accountId; } /** * AWS account ID for the administrator account. * */ @Export(name="administratorId", refs={String.class}, tree="[0]") private Output administratorId; /** * @return AWS account ID for the administrator account. * */ public Output administratorId() { return this.administratorId; } /** * If set to true, then the root user of the invited account will _not_ receive an email notification. This notification is in addition to an alert that the root user receives in AWS Personal Health Dashboard. By default, this is set to `false`. * */ @Export(name="disableEmailNotification", refs={Boolean.class}, tree="[0]") private Output disableEmailNotification; /** * @return If set to true, then the root user of the invited account will _not_ receive an email notification. This notification is in addition to an alert that the root user receives in AWS Personal Health Dashboard. By default, this is set to `false`. * */ public Output> disableEmailNotification() { return Codegen.optional(this.disableEmailNotification); } @Export(name="disabledReason", refs={String.class}, tree="[0]") private Output disabledReason; public Output disabledReason() { return this.disabledReason; } /** * Email address for the account. * */ @Export(name="emailAddress", refs={String.class}, tree="[0]") private Output emailAddress; /** * @return Email address for the account. * */ public Output emailAddress() { return this.emailAddress; } /** * ARN of the behavior graph to invite the member accounts to contribute their data to. * */ @Export(name="graphArn", refs={String.class}, tree="[0]") private Output graphArn; /** * @return ARN of the behavior graph to invite the member accounts to contribute their data to. * */ public Output graphArn() { return this.graphArn; } /** * Date and time, in UTC and extended RFC 3339 format, when an Amazon Detective membership invitation was last sent to the account. * */ @Export(name="invitedTime", refs={String.class}, tree="[0]") private Output invitedTime; /** * @return Date and time, in UTC and extended RFC 3339 format, when an Amazon Detective membership invitation was last sent to the account. * */ public Output invitedTime() { return this.invitedTime; } /** * A custom message to include in the invitation. Amazon Detective adds this message to the standard content that it sends for an invitation. * */ @Export(name="message", refs={String.class}, tree="[0]") private Output message; /** * @return A custom message to include in the invitation. Amazon Detective adds this message to the standard content that it sends for an invitation. * */ public Output> message() { return Codegen.optional(this.message); } /** * Current membership status of the member account. * */ @Export(name="status", refs={String.class}, tree="[0]") private Output status; /** * @return Current membership status of the member account. * */ public Output status() { return this.status; } /** * Date and time, in UTC and extended RFC 3339 format, of the most recent change to the member account's status. * */ @Export(name="updatedTime", refs={String.class}, tree="[0]") private Output updatedTime; /** * @return Date and time, in UTC and extended RFC 3339 format, of the most recent change to the member account's status. * */ public Output updatedTime() { return this.updatedTime; } /** * Data volume in bytes per day for the member account. * */ @Export(name="volumeUsageInBytes", refs={String.class}, tree="[0]") private Output volumeUsageInBytes; /** * @return Data volume in bytes per day for the member account. * */ public Output volumeUsageInBytes() { return this.volumeUsageInBytes; } /** * * @param name The _unique_ name of the resulting resource. */ public Member(java.lang.String name) { this(name, MemberArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public Member(java.lang.String name, MemberArgs args) { this(name, args, null); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ public Member(java.lang.String name, MemberArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("aws:detective/member:Member", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private Member(java.lang.String name, Output id, @Nullable MemberState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("aws:detective/member:Member", name, state, makeResourceOptions(options, id), false); } private static MemberArgs makeArgs(MemberArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } return args == null ? MemberArgs.Empty : args; } private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .build(); return com.pulumi.resources.CustomResourceOptions.merge(defaultOptions, options, id); } /** * Get an existing Host resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state * @param options Optional settings to control the behavior of the CustomResource. */ public static Member get(java.lang.String name, Output id, @Nullable MemberState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new Member(name, id, state, options); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy