Class PrimaryContact


  • public class PrimaryContact
    extends com.pulumi.resources.CustomResource
    Manages the specified primary contact information associated with 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.PrimaryContact;
     import com.pulumi.aws.account.PrimaryContactArgs;
     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 test = new PrimaryContact("test", PrimaryContactArgs.builder()
                 .addressLine1("123 Any Street")
                 .city("Seattle")
                 .companyName("Example Corp, Inc.")
                 .countryCode("US")
                 .districtOrCounty("King")
                 .fullName("My Name")
                 .phoneNumber("+64211111111")
                 .postalCode("98101")
                 .stateOrRegion("WA")
                 .websiteUrl("https://www.example.com")
                 .build());
     
         }
     }
     
     
    ## Import Using `pulumi import`, import the Primary Contact using the `accountId`. For example: ```sh $ pulumi import aws:account/primaryContact:PrimaryContact test 1234567890 ```
    • 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> addressLine1()  
      com.pulumi.core.Output<java.util.Optional<java.lang.String>> addressLine2()  
      com.pulumi.core.Output<java.util.Optional<java.lang.String>> addressLine3()  
      com.pulumi.core.Output<java.lang.String> city()  
      com.pulumi.core.Output<java.util.Optional<java.lang.String>> companyName()  
      com.pulumi.core.Output<java.lang.String> countryCode()  
      com.pulumi.core.Output<java.util.Optional<java.lang.String>> districtOrCounty()  
      com.pulumi.core.Output<java.lang.String> fullName()  
      static PrimaryContact get​(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, PrimaryContactState 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> phoneNumber()  
      com.pulumi.core.Output<java.lang.String> postalCode()  
      com.pulumi.core.Output<java.util.Optional<java.lang.String>> stateOrRegion()  
      com.pulumi.core.Output<java.util.Optional<java.lang.String>> websiteUrl()  
      • 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

      • PrimaryContact

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

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

        public PrimaryContact​(java.lang.String name,
                              PrimaryContactArgs 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:
        The ID of the target account when managing member accounts. Will manage current user's account by default if omitted.
      • addressLine1

        public com.pulumi.core.Output<java.lang.String> addressLine1()
        Returns:
        The first line of the primary contact address.
      • addressLine2

        public com.pulumi.core.Output<java.util.Optional<java.lang.String>> addressLine2()
        Returns:
        The second line of the primary contact address, if any.
      • addressLine3

        public com.pulumi.core.Output<java.util.Optional<java.lang.String>> addressLine3()
        Returns:
        The third line of the primary contact address, if any.
      • city

        public com.pulumi.core.Output<java.lang.String> city()
        Returns:
        The city of the primary contact address.
      • companyName

        public com.pulumi.core.Output<java.util.Optional<java.lang.String>> companyName()
        Returns:
        The name of the company associated with the primary contact information, if any.
      • countryCode

        public com.pulumi.core.Output<java.lang.String> countryCode()
        Returns:
        The ISO-3166 two-letter country code for the primary contact address.
      • districtOrCounty

        public com.pulumi.core.Output<java.util.Optional<java.lang.String>> districtOrCounty()
        Returns:
        The district or county of the primary contact address, if any.
      • fullName

        public com.pulumi.core.Output<java.lang.String> fullName()
        Returns:
        The full name of the primary contact address.
      • phoneNumber

        public com.pulumi.core.Output<java.lang.String> phoneNumber()
        Returns:
        The phone number of the primary contact information. The number will be validated and, in some countries, checked for activation.
      • postalCode

        public com.pulumi.core.Output<java.lang.String> postalCode()
        Returns:
        The postal code of the primary contact address.
      • stateOrRegion

        public com.pulumi.core.Output<java.util.Optional<java.lang.String>> stateOrRegion()
        Returns:
        The state or region of the primary contact address. This field is required in selected countries.
      • websiteUrl

        public com.pulumi.core.Output<java.util.Optional<java.lang.String>> websiteUrl()
        Returns:
        The URL of the website associated with the primary contact information, if any.
      • get

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