Try AWS Native preview for resources not in the classic version.
aws.detective.Member
Explore with Pulumi AI
Try AWS Native preview for resources not in the classic version.
Provides a resource to manage an Amazon Detective Member.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.detective.Graph("example", {});
const exampleMember = new aws.detective.Member("example", {
accountId: "AWS ACCOUNT ID",
emailAddress: "EMAIL",
graphArn: example.id,
message: "Message of the invitation",
disableEmailNotification: true,
});
import pulumi
import pulumi_aws as aws
example = aws.detective.Graph("example")
example_member = aws.detective.Member("example",
account_id="AWS ACCOUNT ID",
email_address="EMAIL",
graph_arn=example.id,
message="Message of the invitation",
disable_email_notification=True)
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/detective"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := detective.NewGraph(ctx, "example", nil)
if err != nil {
return err
}
_, err = detective.NewMember(ctx, "example", &detective.MemberArgs{
AccountId: pulumi.String("AWS ACCOUNT ID"),
EmailAddress: pulumi.String("EMAIL"),
GraphArn: example.ID(),
Message: pulumi.String("Message of the invitation"),
DisableEmailNotification: pulumi.Bool(true),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.Detective.Graph("example");
var exampleMember = new Aws.Detective.Member("example", new()
{
AccountId = "AWS ACCOUNT ID",
EmailAddress = "EMAIL",
GraphArn = example.Id,
Message = "Message of the invitation",
DisableEmailNotification = true,
});
});
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());
}
}
resources:
example:
type: aws:detective:Graph
exampleMember:
type: aws:detective:Member
name: example
properties:
accountId: AWS ACCOUNT ID
emailAddress: EMAIL
graphArn: ${example.id}
message: Message of the invitation
disableEmailNotification: true
Create Member Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Member(name: string, args: MemberArgs, opts?: CustomResourceOptions);
@overload
def Member(resource_name: str,
args: MemberArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Member(resource_name: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
email_address: Optional[str] = None,
graph_arn: Optional[str] = None,
disable_email_notification: Optional[bool] = None,
message: Optional[str] = None)
func NewMember(ctx *Context, name string, args MemberArgs, opts ...ResourceOption) (*Member, error)
public Member(string name, MemberArgs args, CustomResourceOptions? opts = null)
public Member(String name, MemberArgs args)
public Member(String name, MemberArgs args, CustomResourceOptions options)
type: aws:detective:Member
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args MemberArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args MemberArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args MemberArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args MemberArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args MemberArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var memberResource = new Aws.Detective.Member("memberResource", new()
{
AccountId = "string",
EmailAddress = "string",
GraphArn = "string",
DisableEmailNotification = false,
Message = "string",
});
example, err := detective.NewMember(ctx, "memberResource", &detective.MemberArgs{
AccountId: pulumi.String("string"),
EmailAddress: pulumi.String("string"),
GraphArn: pulumi.String("string"),
DisableEmailNotification: pulumi.Bool(false),
Message: pulumi.String("string"),
})
var memberResource = new Member("memberResource", MemberArgs.builder()
.accountId("string")
.emailAddress("string")
.graphArn("string")
.disableEmailNotification(false)
.message("string")
.build());
member_resource = aws.detective.Member("memberResource",
account_id="string",
email_address="string",
graph_arn="string",
disable_email_notification=False,
message="string")
const memberResource = new aws.detective.Member("memberResource", {
accountId: "string",
emailAddress: "string",
graphArn: "string",
disableEmailNotification: false,
message: "string",
});
type: aws:detective:Member
properties:
accountId: string
disableEmailNotification: false
emailAddress: string
graphArn: string
message: string
Member Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The Member resource accepts the following input properties:
- Account
Id string - AWS account ID for the account.
- Email
Address string - Email address for the account.
- Graph
Arn string - ARN of the behavior graph to invite the member accounts to contribute their data to.
- Disable
Email boolNotification - 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
. - Message string
- A custom message to include in the invitation. Amazon Detective adds this message to the standard content that it sends for an invitation.
- Account
Id string - AWS account ID for the account.
- Email
Address string - Email address for the account.
- Graph
Arn string - ARN of the behavior graph to invite the member accounts to contribute their data to.
- Disable
Email boolNotification - 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
. - Message string
- A custom message to include in the invitation. Amazon Detective adds this message to the standard content that it sends for an invitation.
- account
Id String - AWS account ID for the account.
- email
Address String - Email address for the account.
- graph
Arn String - ARN of the behavior graph to invite the member accounts to contribute their data to.
- disable
Email BooleanNotification - 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
. - message String
- A custom message to include in the invitation. Amazon Detective adds this message to the standard content that it sends for an invitation.
- account
Id string - AWS account ID for the account.
- email
Address string - Email address for the account.
- graph
Arn string - ARN of the behavior graph to invite the member accounts to contribute their data to.
- disable
Email booleanNotification - 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
. - message string
- A custom message to include in the invitation. Amazon Detective adds this message to the standard content that it sends for an invitation.
- account_
id str - AWS account ID for the account.
- email_
address str - Email address for the account.
- graph_
arn str - ARN of the behavior graph to invite the member accounts to contribute their data to.
- disable_
email_ boolnotification - 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
. - message str
- A custom message to include in the invitation. Amazon Detective adds this message to the standard content that it sends for an invitation.
- account
Id String - AWS account ID for the account.
- email
Address String - Email address for the account.
- graph
Arn String - ARN of the behavior graph to invite the member accounts to contribute their data to.
- disable
Email BooleanNotification - 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
. - message String
- A custom message to include in the invitation. Amazon Detective adds this message to the standard content that it sends for an invitation.
Outputs
All input properties are implicitly available as output properties. Additionally, the Member resource produces the following output properties:
- Administrator
Id string - AWS account ID for the administrator account.
- Disabled
Reason string - Id string
- The provider-assigned unique ID for this managed resource.
- Invited
Time string - Date and time, in UTC and extended RFC 3339 format, when an Amazon Detective membership invitation was last sent to the account.
- Status string
- Current membership status of the member account.
- Updated
Time string - Date and time, in UTC and extended RFC 3339 format, of the most recent change to the member account's status.
- Volume
Usage stringIn Bytes - Data volume in bytes per day for the member account.
- Administrator
Id string - AWS account ID for the administrator account.
- Disabled
Reason string - Id string
- The provider-assigned unique ID for this managed resource.
- Invited
Time string - Date and time, in UTC and extended RFC 3339 format, when an Amazon Detective membership invitation was last sent to the account.
- Status string
- Current membership status of the member account.
- Updated
Time string - Date and time, in UTC and extended RFC 3339 format, of the most recent change to the member account's status.
- Volume
Usage stringIn Bytes - Data volume in bytes per day for the member account.
- administrator
Id String - AWS account ID for the administrator account.
- disabled
Reason String - id String
- The provider-assigned unique ID for this managed resource.
- invited
Time String - Date and time, in UTC and extended RFC 3339 format, when an Amazon Detective membership invitation was last sent to the account.
- status String
- Current membership status of the member account.
- updated
Time String - Date and time, in UTC and extended RFC 3339 format, of the most recent change to the member account's status.
- volume
Usage StringIn Bytes - Data volume in bytes per day for the member account.
- administrator
Id string - AWS account ID for the administrator account.
- disabled
Reason string - id string
- The provider-assigned unique ID for this managed resource.
- invited
Time string - Date and time, in UTC and extended RFC 3339 format, when an Amazon Detective membership invitation was last sent to the account.
- status string
- Current membership status of the member account.
- updated
Time string - Date and time, in UTC and extended RFC 3339 format, of the most recent change to the member account's status.
- volume
Usage stringIn Bytes - Data volume in bytes per day for the member account.
- administrator_
id str - AWS account ID for the administrator account.
- disabled_
reason str - id str
- The provider-assigned unique ID for this managed resource.
- invited_
time str - Date and time, in UTC and extended RFC 3339 format, when an Amazon Detective membership invitation was last sent to the account.
- status str
- Current membership status of the member account.
- updated_
time str - Date and time, in UTC and extended RFC 3339 format, of the most recent change to the member account's status.
- volume_
usage_ strin_ bytes - Data volume in bytes per day for the member account.
- administrator
Id String - AWS account ID for the administrator account.
- disabled
Reason String - id String
- The provider-assigned unique ID for this managed resource.
- invited
Time String - Date and time, in UTC and extended RFC 3339 format, when an Amazon Detective membership invitation was last sent to the account.
- status String
- Current membership status of the member account.
- updated
Time String - Date and time, in UTC and extended RFC 3339 format, of the most recent change to the member account's status.
- volume
Usage StringIn Bytes - Data volume in bytes per day for the member account.
Look up Existing Member Resource
Get an existing Member resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: MemberState, opts?: CustomResourceOptions): Member
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
administrator_id: Optional[str] = None,
disable_email_notification: Optional[bool] = None,
disabled_reason: Optional[str] = None,
email_address: Optional[str] = None,
graph_arn: Optional[str] = None,
invited_time: Optional[str] = None,
message: Optional[str] = None,
status: Optional[str] = None,
updated_time: Optional[str] = None,
volume_usage_in_bytes: Optional[str] = None) -> Member
func GetMember(ctx *Context, name string, id IDInput, state *MemberState, opts ...ResourceOption) (*Member, error)
public static Member Get(string name, Input<string> id, MemberState? state, CustomResourceOptions? opts = null)
public static Member get(String name, Output<String> id, MemberState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Account
Id string - AWS account ID for the account.
- Administrator
Id string - AWS account ID for the administrator account.
- Disable
Email boolNotification - 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
. - Disabled
Reason string - Email
Address string - Email address for the account.
- Graph
Arn string - ARN of the behavior graph to invite the member accounts to contribute their data to.
- Invited
Time string - Date and time, in UTC and extended RFC 3339 format, when an Amazon Detective membership invitation was last sent to the account.
- Message string
- A custom message to include in the invitation. Amazon Detective adds this message to the standard content that it sends for an invitation.
- Status string
- Current membership status of the member account.
- Updated
Time string - Date and time, in UTC and extended RFC 3339 format, of the most recent change to the member account's status.
- Volume
Usage stringIn Bytes - Data volume in bytes per day for the member account.
- Account
Id string - AWS account ID for the account.
- Administrator
Id string - AWS account ID for the administrator account.
- Disable
Email boolNotification - 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
. - Disabled
Reason string - Email
Address string - Email address for the account.
- Graph
Arn string - ARN of the behavior graph to invite the member accounts to contribute their data to.
- Invited
Time string - Date and time, in UTC and extended RFC 3339 format, when an Amazon Detective membership invitation was last sent to the account.
- Message string
- A custom message to include in the invitation. Amazon Detective adds this message to the standard content that it sends for an invitation.
- Status string
- Current membership status of the member account.
- Updated
Time string - Date and time, in UTC and extended RFC 3339 format, of the most recent change to the member account's status.
- Volume
Usage stringIn Bytes - Data volume in bytes per day for the member account.
- account
Id String - AWS account ID for the account.
- administrator
Id String - AWS account ID for the administrator account.
- disable
Email BooleanNotification - 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
. - disabled
Reason String - email
Address String - Email address for the account.
- graph
Arn String - ARN of the behavior graph to invite the member accounts to contribute their data to.
- invited
Time String - Date and time, in UTC and extended RFC 3339 format, when an Amazon Detective membership invitation was last sent to the account.
- message String
- A custom message to include in the invitation. Amazon Detective adds this message to the standard content that it sends for an invitation.
- status String
- Current membership status of the member account.
- updated
Time String - Date and time, in UTC and extended RFC 3339 format, of the most recent change to the member account's status.
- volume
Usage StringIn Bytes - Data volume in bytes per day for the member account.
- account
Id string - AWS account ID for the account.
- administrator
Id string - AWS account ID for the administrator account.
- disable
Email booleanNotification - 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
. - disabled
Reason string - email
Address string - Email address for the account.
- graph
Arn string - ARN of the behavior graph to invite the member accounts to contribute their data to.
- invited
Time string - Date and time, in UTC and extended RFC 3339 format, when an Amazon Detective membership invitation was last sent to the account.
- message string
- A custom message to include in the invitation. Amazon Detective adds this message to the standard content that it sends for an invitation.
- status string
- Current membership status of the member account.
- updated
Time string - Date and time, in UTC and extended RFC 3339 format, of the most recent change to the member account's status.
- volume
Usage stringIn Bytes - Data volume in bytes per day for the member account.
- account_
id str - AWS account ID for the account.
- administrator_
id str - AWS account ID for the administrator account.
- disable_
email_ boolnotification - 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
. - disabled_
reason str - email_
address str - Email address for the account.
- graph_
arn str - ARN of the behavior graph to invite the member accounts to contribute their data to.
- invited_
time str - Date and time, in UTC and extended RFC 3339 format, when an Amazon Detective membership invitation was last sent to the account.
- message str
- A custom message to include in the invitation. Amazon Detective adds this message to the standard content that it sends for an invitation.
- status str
- Current membership status of the member account.
- updated_
time str - Date and time, in UTC and extended RFC 3339 format, of the most recent change to the member account's status.
- volume_
usage_ strin_ bytes - Data volume in bytes per day for the member account.
- account
Id String - AWS account ID for the account.
- administrator
Id String - AWS account ID for the administrator account.
- disable
Email BooleanNotification - 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
. - disabled
Reason String - email
Address String - Email address for the account.
- graph
Arn String - ARN of the behavior graph to invite the member accounts to contribute their data to.
- invited
Time String - Date and time, in UTC and extended RFC 3339 format, when an Amazon Detective membership invitation was last sent to the account.
- message String
- A custom message to include in the invitation. Amazon Detective adds this message to the standard content that it sends for an invitation.
- status String
- Current membership status of the member account.
- updated
Time String - Date and time, in UTC and extended RFC 3339 format, of the most recent change to the member account's status.
- volume
Usage StringIn Bytes - Data volume in bytes per day for the member account.
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:
$ pulumi import aws:detective/member:Member example arn:aws:detective:us-east-1:123456789101:graph:231684d34gh74g4bae1dbc7bd807d02d/123456789012
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.
Try AWS Native preview for resources not in the classic version.