Package com.pulumi.aws.detective
Class Member
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.aws.detective.Member
-
public class Member extends com.pulumi.resources.CustomResourceProvides a resource to manage an [Amazon Detective Member](https://docs.aws.amazon.com/detective/latest/APIReference/API_CreateMembers.html). ## Example Usage
## 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 ```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.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 Graph("example"); var exampleMember = new Member("exampleMember", MemberArgs.builder() .accountId("AWS ACCOUNT ID") .emailAddress("EMAIL") .graphArn(example.graphArn()) .message("Message of the invitation") .disableEmailNotification(true) .build()); } }
-
-
Constructor Summary
Constructors Constructor Description Member(java.lang.String name)Member(java.lang.String name, MemberArgs args)Member(java.lang.String name, MemberArgs 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>accountId()com.pulumi.core.Output<java.lang.String>administratorId()com.pulumi.core.Output<java.lang.String>disabledReason()com.pulumi.core.Output<java.util.Optional<java.lang.Boolean>>disableEmailNotification()com.pulumi.core.Output<java.lang.String>emailAddress()static Memberget(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, MemberState 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>graphArn()com.pulumi.core.Output<java.lang.String>invitedTime()com.pulumi.core.Output<java.util.Optional<java.lang.String>>message()com.pulumi.core.Output<java.lang.String>region()com.pulumi.core.Output<java.lang.String>status()com.pulumi.core.Output<java.lang.String>updatedTime()com.pulumi.core.Output<java.lang.String>volumeUsageInBytes()
-
-
-
Constructor Detail
-
Member
public Member(java.lang.String name)
- Parameters:
name- The _unique_ name of the resulting resource.
-
Member
public Member(java.lang.String name, MemberArgs args)- Parameters:
name- The _unique_ name of the resulting resource.args- The arguments to use to populate this resource's properties.
-
Member
public Member(java.lang.String name, MemberArgs 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
-
accountId
public com.pulumi.core.Output<java.lang.String> accountId()
- Returns:
- AWS account ID for the account.
-
administratorId
public com.pulumi.core.Output<java.lang.String> administratorId()
- Returns:
- AWS account ID for the administrator account.
-
disableEmailNotification
public com.pulumi.core.Output<java.util.Optional<java.lang.Boolean>> disableEmailNotification()
- Returns:
- 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`.
-
disabledReason
public com.pulumi.core.Output<java.lang.String> disabledReason()
-
emailAddress
public com.pulumi.core.Output<java.lang.String> emailAddress()
- Returns:
- Email address for the account.
-
graphArn
public com.pulumi.core.Output<java.lang.String> graphArn()
- Returns:
- ARN of the behavior graph to invite the member accounts to contribute their data to.
-
invitedTime
public com.pulumi.core.Output<java.lang.String> invitedTime()
- Returns:
- Date and time, in UTC and extended RFC 3339 format, when an Amazon Detective membership invitation was last sent to the account.
-
message
public com.pulumi.core.Output<java.util.Optional<java.lang.String>> message()
- Returns:
- A custom message to include in the invitation. Amazon Detective adds this message to the standard content that it sends for an invitation.
-
region
public com.pulumi.core.Output<java.lang.String> region()
- Returns:
- Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
-
status
public com.pulumi.core.Output<java.lang.String> status()
- Returns:
- Current membership status of the member account.
-
updatedTime
public com.pulumi.core.Output<java.lang.String> updatedTime()
- Returns:
- Date and time, in UTC and extended RFC 3339 format, of the most recent change to the member account's status.
-
volumeUsageInBytes
public com.pulumi.core.Output<java.lang.String> volumeUsageInBytes()
- Returns:
- Data volume in bytes per day for the member account.
-
get
public static Member get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, @Nullable MemberState 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.
-
-