@pulumi/aws
Version:
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
90 lines (89 loc) • 3.99 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Provides a resource to manage an [Amazon Detective Invitation Accepter](https://docs.aws.amazon.com/detective/latest/APIReference/API_AcceptInvitation.html). Ensure that the accepter is configured to use the AWS account you wish to _accept_ the invitation from the primary graph owner account.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const primary = new aws.detective.Graph("primary", {});
* const primaryMember = new aws.detective.Member("primary", {
* accountId: "ACCOUNT ID",
* emailAddress: "EMAIL",
* graphArn: primary.graphArn,
* message: "Message of the invite",
* });
* const member = new aws.detective.InvitationAccepter("member", {graphArn: primary.graphArn}, {
* dependsOn: [primaryMember],
* });
* ```
*
* ## Import
*
* Using `pulumi import`, import `aws_detective_invitation_accepter` using the graph ARN. For example:
*
* ```sh
* $ pulumi import aws:detective/invitationAccepter:InvitationAccepter example arn:aws:detective:us-east-1:123456789101:graph:231684d34gh74g4bae1dbc7bd807d02d
* ```
*/
export declare class InvitationAccepter extends pulumi.CustomResource {
/**
* Get an existing InvitationAccepter 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 Any extra arguments used during the lookup.
* @param opts Optional settings to control the behavior of the CustomResource.
*/
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: InvitationAccepterState, opts?: pulumi.CustomResourceOptions): InvitationAccepter;
/**
* Returns true if the given object is an instance of InvitationAccepter. This is designed to work even
* when multiple copies of the Pulumi SDK have been loaded into the same process.
*/
static isInstance(obj: any): obj is InvitationAccepter;
/**
* ARN of the behavior graph that the member account is accepting the invitation for.
*/
readonly graphArn: pulumi.Output<string>;
/**
* 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.
*/
readonly region: pulumi.Output<string>;
/**
* Create a InvitationAccepter resource with the given unique name, arguments, and options.
*
* @param name The _unique_ name of the resource.
* @param args The arguments to use to populate this resource's properties.
* @param opts A bag of options that control this resource's behavior.
*/
constructor(name: string, args: InvitationAccepterArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering InvitationAccepter resources.
*/
export interface InvitationAccepterState {
/**
* ARN of the behavior graph that the member account is accepting the invitation for.
*/
graphArn?: pulumi.Input<string>;
/**
* 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.
*/
region?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a InvitationAccepter resource.
*/
export interface InvitationAccepterArgs {
/**
* ARN of the behavior graph that the member account is accepting the invitation for.
*/
graphArn: pulumi.Input<string>;
/**
* 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.
*/
region?: pulumi.Input<string>;
}