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,
        }, new CustomResourceOptions
        {
            DependsOn = 
            {
                "aws_securityhub_account.example",
            },
        });
    }

}
package main

import (
    "github.com/pulumi/pulumi-aws/sdk/v2/go/aws/securityhub"
    "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)

func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
        _, err := securityhub.NewAccount(ctx, "exampleAccount", nil)
        if err != nil {
            return err
        }
        _, err = securityhub.NewMember(ctx, "exampleMember", &securityhub.MemberArgs{
            AccountId: pulumi.String("123456789012"),
            Email:     pulumi.String("example@example.com"),
            Invite:    pulumi.Bool(true),
        }, pulumi.DependsOn([]pulumi.Resource{
            "aws_securityhub_account.example",
        }))
        if err != nil {
            return err
        }
        return nil
    })
}
import pulumi
import pulumi_aws as aws

example_account = aws.securityhub.Account("exampleAccount")
example_member = aws.securityhub.Member("exampleMember",
    account_id="123456789012",
    email="example@example.com",
    invite=True,
    opts=ResourceOptions(depends_on=["aws_securityhub_account.example"]))
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const exampleAccount = new aws.securityhub.Account("example", {});
const exampleMember = new aws.securityhub.Member("example", {
    accountId: "123456789012",
    email: "example@example.com",
    invite: true,
}, { dependsOn: [exampleAccount] });

Create a Member Resource

new Member(name: string, args: MemberArgs, opts?: CustomResourceOptions);
def Member(resource_name, opts=None, account_id=None, email=None, invite=None, __props__=None);
func NewMember(ctx *Context, name string, args MemberArgs, opts ...ResourceOption) (*Member, error)
public Member(string name, MemberArgs args, CustomResourceOptions? opts = null)
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.
opts ResourceOptions
A bag of options that control this 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.

Member Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.

Inputs

The Member resource accepts the following input properties:

AccountId string

The ID of the member AWS account.

Email string

The email of the member AWS account.

Invite bool

Boolean whether to invite the account to Security Hub as a member. Defaults to false.

AccountId string

The ID of the member AWS account.

Email string

The email of the member AWS account.

Invite bool

Boolean whether to invite the account to Security Hub as a member. Defaults to false.

accountId string

The ID of the member AWS account.

email string

The email of the member AWS account.

invite boolean

Boolean whether to invite the account to Security Hub as a member. Defaults to false.

account_id str

The ID of the member AWS account.

email str

The email of the member AWS account.

invite bool

Boolean whether to invite the account to Security Hub as a member. Defaults to false.

Outputs

All input properties are implicitly available as output properties. Additionally, the Member resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
MasterId string

The ID of the master Security Hub AWS account.

MemberStatus string

The status of the member account relationship.

Id string
The provider-assigned unique ID for this managed resource.
MasterId string

The ID of the master Security Hub AWS account.

MemberStatus string

The status of the member account relationship.

id string
The provider-assigned unique ID for this managed resource.
masterId string

The ID of the master Security Hub AWS account.

memberStatus string

The status of the member account relationship.

id str
The provider-assigned unique ID for this managed resource.
master_id str

The ID of the master Security Hub AWS account.

member_status str

The status of the member account relationship.

Look up an 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
static get(resource_name, id, opts=None, account_id=None, email=None, invite=None, master_id=None, member_status=None, __props__=None);
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)
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.

The following state arguments are supported:

AccountId string

The ID of the member AWS account.

Email string

The email of the member AWS account.

Invite bool

Boolean whether to invite the account to Security Hub as a member. Defaults to false.

MasterId string

The ID of the master Security Hub AWS account.

MemberStatus string

The status of the member account relationship.

AccountId string

The ID of the member AWS account.

Email string

The email of the member AWS account.

Invite bool

Boolean whether to invite the account to Security Hub as a member. Defaults to false.

MasterId string

The ID of the master Security Hub AWS account.

MemberStatus string

The status of the member account relationship.

accountId string

The ID of the member AWS account.

email string

The email of the member AWS account.

invite boolean

Boolean whether to invite the account to Security Hub as a member. Defaults to false.

masterId string

The ID of the master Security Hub AWS account.

memberStatus string

The status of the member account relationship.

account_id str

The ID of the member AWS account.

email str

The email of the member AWS account.

invite bool

Boolean whether to invite the account to Security Hub as a member. Defaults to false.

master_id str

The ID of the master Security Hub AWS account.

member_status str

The status of the member account relationship.

Package Details

Repository
https://github.com/pulumi/pulumi-aws
License
Apache-2.0
Notes
This Pulumi package is based on the aws Terraform Provider.