Class AlternativeContact


  • public class AlternativeContact
    extends com.pulumi.resources.CustomResource
    Manages the specified alternate contact attached to an AWS Account. ## Example Usage
     
     package generated_program;
     
     import com.pulumi.Context;
     import com.pulumi.Pulumi;
     import com.pulumi.core.Output;
     import com.pulumi.aws.account.AlternativeContact;
     import com.pulumi.aws.account.AlternativeContactArgs;
     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 operations = new AlternativeContact("operations", AlternativeContactArgs.builder()
                 .alternateContactType("OPERATIONS")
                 .name("Example")
                 .title("Example")
                 .emailAddress("test@example.com")
                 .phoneNumber("+1234567890")
                 .build());
     
         }
     }
     
     
    ## Import Import the Alternate Contact for another account using the `accountId` and `alternateContactType` separated by a forward slash (`/`): **Using `pulumi import` to import** the Alternate Contact for the current or another account using the `alternateContactType`. For example: Import the Alternate Contact for the current account: ```sh $ pulumi import aws:account/alternativeContact:AlternativeContact operations OPERATIONS ``` Import the Alternate Contact for another account using the `accountId` and `alternateContactType` separated by a forward slash (`/`): ```sh $ pulumi import aws:account/alternativeContact:AlternativeContact operations 1234567890/OPERATIONS ```
    • 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
      com.pulumi.core.Output<java.util.Optional<java.lang.String>> accountId()  
      com.pulumi.core.Output<java.lang.String> alternateContactType()  
      com.pulumi.core.Output<java.lang.String> emailAddress()  
      static AlternativeContact get​(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, AlternativeContactState 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> name()  
      com.pulumi.core.Output<java.lang.String> phoneNumber()  
      com.pulumi.core.Output<java.lang.String> title()  
      • 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

      • AlternativeContact

        public AlternativeContact​(java.lang.String name)
        Parameters:
        name - The _unique_ name of the resulting resource.
      • AlternativeContact

        public AlternativeContact​(java.lang.String name,
                                  AlternativeContactArgs args)
        Parameters:
        name - The _unique_ name of the resulting resource.
        args - The arguments to use to populate this resource's properties.
      • AlternativeContact

        public AlternativeContact​(java.lang.String name,
                                  AlternativeContactArgs 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

      • accountId

        public com.pulumi.core.Output<java.util.Optional<java.lang.String>> accountId()
        Returns:
        ID of the target account when managing member accounts. Will manage current user's account by default if omitted.
      • alternateContactType

        public com.pulumi.core.Output<java.lang.String> alternateContactType()
        Returns:
        Type of the alternate contact. Allowed values are: `BILLING`, `OPERATIONS`, `SECURITY`.
      • emailAddress

        public com.pulumi.core.Output<java.lang.String> emailAddress()
        Returns:
        An email address for the alternate contact.
      • name

        public com.pulumi.core.Output<java.lang.String> name()
        Returns:
        Name of the alternate contact.
      • phoneNumber

        public com.pulumi.core.Output<java.lang.String> phoneNumber()
        Returns:
        Phone number for the alternate contact.
      • title

        public com.pulumi.core.Output<java.lang.String> title()
        Returns:
        Title for the alternate contact.
      • get

        public static AlternativeContact get​(java.lang.String name,
                                             com.pulumi.core.Output<java.lang.String> id,
                                             @Nullable
                                             AlternativeContactState 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.