Class DelegatedAdministrator


  • public class DelegatedAdministrator
    extends com.pulumi.resources.CustomResource
    Provides a resource to manage an [AWS Organizations Delegated Administrator](https://docs.aws.amazon.com/organizations/latest/APIReference/API_RegisterDelegatedAdministrator.html). ## Example Usage <!--Start PulumiCodeChooser --> ```java package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.aws.organizations.DelegatedAdministrator; import com.pulumi.aws.organizations.DelegatedAdministratorArgs; 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 example = new DelegatedAdministrator("example", DelegatedAdministratorArgs.builder() .accountId("123456789012") .servicePrincipal("principal") .build()); } } ``` <!--End PulumiCodeChooser --> ## Import Using `pulumi import`, import `aws_organizations_delegated_administrator` using the account ID and its service principal. For example: ```sh $ pulumi import aws:organizations/delegatedAdministrator:DelegatedAdministrator example 123456789012/config.amazonaws.com ```
    • 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.lang.String> accountId()  
      com.pulumi.core.Output<java.lang.String> arn()  
      com.pulumi.core.Output<java.lang.String> delegationEnabledDate()  
      com.pulumi.core.Output<java.lang.String> email()  
      static DelegatedAdministrator get​(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, DelegatedAdministratorState 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> joinedMethod()  
      com.pulumi.core.Output<java.lang.String> joinedTimestamp()  
      com.pulumi.core.Output<java.lang.String> name()  
      com.pulumi.core.Output<java.lang.String> servicePrincipal()  
      com.pulumi.core.Output<java.lang.String> status()  
      • 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

      • DelegatedAdministrator

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

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

        public DelegatedAdministrator​(java.lang.String name,
                                      DelegatedAdministratorArgs 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.lang.String> accountId()
        Returns:
        The account ID number of the member account in the organization to register as a delegated administrator.
      • arn

        public com.pulumi.core.Output<java.lang.String> arn()
        Returns:
        The Amazon Resource Name (ARN) of the delegated administrator's account.
      • delegationEnabledDate

        public com.pulumi.core.Output<java.lang.String> delegationEnabledDate()
        Returns:
        The date when the account was made a delegated administrator.
      • email

        public com.pulumi.core.Output<java.lang.String> email()
        Returns:
        The email address that is associated with the delegated administrator's AWS account.
      • joinedMethod

        public com.pulumi.core.Output<java.lang.String> joinedMethod()
        Returns:
        The method by which the delegated administrator's account joined the organization.
      • joinedTimestamp

        public com.pulumi.core.Output<java.lang.String> joinedTimestamp()
        Returns:
        The date when the delegated administrator's account became a part of the organization.
      • name

        public com.pulumi.core.Output<java.lang.String> name()
        Returns:
        The friendly name of the delegated administrator's account.
      • servicePrincipal

        public com.pulumi.core.Output<java.lang.String> servicePrincipal()
        Returns:
        The service principal of the AWS service for which you want to make the member account a delegated administrator.
      • status

        public com.pulumi.core.Output<java.lang.String> status()
        Returns:
        The status of the delegated administrator's account in the organization.
      • get

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