Class InvitationAccepter


  • public class InvitationAccepter
    extends com.pulumi.resources.CustomResource
    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
     
     package generated_program;
     
     import com.pulumi.Context;
     import com.pulumi.Pulumi;
     import com.pulumi.core.Output;
     import com.pulumi.aws.detective.Graph;
     import com.pulumi.aws.detective.Member;
     import com.pulumi.aws.detective.MemberArgs;
     import com.pulumi.aws.detective.InvitationAccepter;
     import com.pulumi.aws.detective.InvitationAccepterArgs;
     import com.pulumi.resources.CustomResourceOptions;
     import java.util.ArrayList;
     import java.util.Arrays;
     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 Graph("primary");
     
             var primaryMember = new Member("primaryMember", MemberArgs.builder()
                 .accountId("ACCOUNT ID")
                 .emailAddress("EMAIL")
                 .graphArn(primary.graphArn())
                 .message("Message of the invite")
                 .build());
     
             var member = new InvitationAccepter("member", InvitationAccepterArgs.builder()
                 .graphArn(primary.graphArn())
                 .build(), CustomResourceOptions.builder()
                     .dependsOn(primaryMember)
                     .build());
     
         }
     }
     
     
    ## Import Using `pulumi import`, import `aws.detective.InvitationAccepter` using the graph ARN. For example: ```sh $ pulumi import aws:detective/invitationAccepter:InvitationAccepter example arn:aws:detective:us-east-1:123456789101:graph:231684d34gh74g4bae1dbc7bd807d02d ```
    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.pulumi.resources.CustomResource

        com.pulumi.resources.CustomResource.CustomResourceInternal
      • Nested classes/interfaces inherited from class com.pulumi.resources.Resource

        com.pulumi.resources.Resource.LazyField<T extends java.lang.Object>, com.pulumi.resources.Resource.LazyFields, com.pulumi.resources.Resource.ResourceInternal
    • Field Summary

      • Fields inherited from class com.pulumi.resources.Resource

        childResources, remote
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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> graphArn()  
      com.pulumi.core.Output<java.lang.String> region()  
      • Methods inherited from class com.pulumi.resources.CustomResource

        getId, id, idFuture
      • Methods inherited from class com.pulumi.resources.Resource

        getChildResources, getResourceName, getResourceType, getUrn, pulumiChildResources, pulumiResourceName, pulumiResourceType, urn
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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

      • graphArn

        public com.pulumi.core.Output<java.lang.String> graphArn()
        Returns:
        ARN of the behavior graph that the member account is accepting the invitation for.
      • region

        public com.pulumi.core.Output<java.lang.String> region()
        Returns:
        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.
      • 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.