Package com.pulumi.aws.macie2
Class InvitationAccepter
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.aws.macie2.InvitationAccepter
-
public class InvitationAccepter extends com.pulumi.resources.CustomResource
Provides a resource to manage an [Amazon Macie Invitation Accepter](https://docs.aws.amazon.com/macie/latest/APIReference/invitations-accept.html). ## Example Usage <!--Start PulumiCodeChooser -->package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.aws.macie2.Account; import com.pulumi.aws.macie2.Member; import com.pulumi.aws.macie2.MemberArgs; import com.pulumi.aws.macie2.InvitationAccepter; import com.pulumi.aws.macie2.InvitationAccepterArgs; import com.pulumi.resources.CustomResourceOptions; 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 primary = new Account("primary"); var member = new Account("member"); var primaryMember = new Member("primaryMember", MemberArgs.builder() .accountId("ACCOUNT ID") .email("EMAIL") .invite(true) .invitationMessage("Message of the invite") .build(), CustomResourceOptions.builder() .dependsOn(primary) .build()); var memberInvitationAccepter = new InvitationAccepter("memberInvitationAccepter", InvitationAccepterArgs.builder() .administratorAccountId("ADMINISTRATOR ACCOUNT ID") .build(), CustomResourceOptions.builder() .dependsOn(primaryMember) .build()); } }
-
-
Constructor Summary
Constructors Constructor Description InvitationAccepter(java.lang.String name)
InvitationAccepter(java.lang.String name, InvitationAccepterArgs args)
InvitationAccepter(java.lang.String name, InvitationAccepterArgs args, com.pulumi.resources.CustomResourceOptions options)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.pulumi.core.Output<java.lang.String>
administratorAccountId()
static InvitationAccepter
get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, InvitationAccepterState state, com.pulumi.resources.CustomResourceOptions options)
Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.com.pulumi.core.Output<java.lang.String>
invitationId()
-
-
-
Constructor Detail
-
InvitationAccepter
public InvitationAccepter(java.lang.String name)
- Parameters:
name
- The _unique_ name of the resulting resource.
-
InvitationAccepter
public InvitationAccepter(java.lang.String name, InvitationAccepterArgs args)
- Parameters:
name
- The _unique_ name of the resulting resource.args
- The arguments to use to populate this resource's properties.
-
InvitationAccepter
public InvitationAccepter(java.lang.String name, InvitationAccepterArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options)
- Parameters:
name
- The _unique_ name of the resulting resource.args
- The arguments to use to populate this resource's properties.options
- A bag of options that control this resource's behavior.
-
-
Method Detail
-
administratorAccountId
public com.pulumi.core.Output<java.lang.String> administratorAccountId()
- Returns:
- The AWS account ID for the account that sent the invitation.
-
invitationId
public com.pulumi.core.Output<java.lang.String> invitationId()
- Returns:
- The unique identifier for the invitation.
-
get
public static InvitationAccepter get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, @Nullable InvitationAccepterState state, @Nullable com.pulumi.resources.CustomResourceOptions options)
Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.- Parameters:
name
- The _unique_ name of the resulting resource.id
- The _unique_ provider ID of the resource to lookup.state
-options
- Optional settings to control the behavior of the CustomResource.
-
-