@pulumi/aws
Version:
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
101 lines (100 loc) • 4.09 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Provides a resource to manage an [Amazon Macie Invitation Accepter](https://docs.aws.amazon.com/macie/latest/APIReference/invitations-accept.html).
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const primary = new aws.macie2.Account("primary", {});
* const member = new aws.macie2.Account("member", {});
* const primaryMember = new aws.macie2.Member("primary", {
* accountId: "ACCOUNT ID",
* email: "EMAIL",
* invite: true,
* invitationMessage: "Message of the invite",
* }, {
* dependsOn: [primary],
* });
* const memberInvitationAccepter = new aws.macie2.InvitationAccepter("member", {administratorAccountId: "ADMINISTRATOR ACCOUNT ID"}, {
* dependsOn: [primaryMember],
* });
* ```
*
* ## Import
*
* Using `pulumi import`, import `aws_macie2_invitation_accepter` using the admin account ID. For example:
*
* ```sh
* $ pulumi import aws:macie2/invitationAccepter:InvitationAccepter example 123456789012
* ```
*/
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;
/**
* The AWS account ID for the account that sent the invitation.
*/
readonly administratorAccountId: pulumi.Output<string>;
/**
* The unique identifier for the invitation.
*/
readonly invitationId: 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 {
/**
* The AWS account ID for the account that sent the invitation.
*/
administratorAccountId?: pulumi.Input<string>;
/**
* The unique identifier for the invitation.
*/
invitationId?: 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 {
/**
* The AWS account ID for the account that sent the invitation.
*/
administratorAccountId: 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>;
}