Class Member
Provides a Security Hub member resource.
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var exampleAccount = new Aws.SecurityHub.Account("exampleAccount", new Aws.SecurityHub.AccountArgs
{
});
var exampleMember = new Aws.SecurityHub.Member("exampleMember", new Aws.SecurityHub.MemberArgs
{
AccountId = "123456789012",
Email = "example@example.com",
Invite = true,
});
}
}
Inherited Members
Namespace: Pulumi.Aws.SecurityHub
Assembly: Pulumi.Aws.dll
Syntax
public class Member : CustomResource
Constructors
View SourceMember(String, MemberArgs, CustomResourceOptions)
Create a Member resource with the given unique name, arguments, and options.
Declaration
public Member(string name, MemberArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| MemberArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceAccountId
The ID of the member AWS account.
Declaration
public Output<string> AccountId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
The email of the member AWS account.
Declaration
public Output<string> Email { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Invite
Boolean whether to invite the account to Security Hub as a member. Defaults to false.
Declaration
public Output<bool?> Invite { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Boolean>> |
MasterId
The ID of the master Security Hub AWS account.
Declaration
public Output<string> MasterId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
MemberStatus
The status of the relationship between the member account and its master account.
Declaration
public Output<string> MemberStatus { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, MemberState, CustomResourceOptions)
Get an existing Member resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static Member Get(string name, Input<string> id, MemberState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| MemberState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| Member |