AWS v6.71.0 published on Friday, Mar 7, 2025 by Pulumi
aws.organizations.getDelegatedAdministrators
Explore with Pulumi AI
Get a list of AWS accounts that are designated as delegated administrators in this organization
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = aws.organizations.getDelegatedAdministrators({
    servicePrincipal: "SERVICE PRINCIPAL",
});
import pulumi
import pulumi_aws as aws
example = aws.organizations.get_delegated_administrators(service_principal="SERVICE PRINCIPAL")
package main
import (
	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/organizations"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := organizations.GetDelegatedAdministrators(ctx, &organizations.GetDelegatedAdministratorsArgs{
			ServicePrincipal: pulumi.StringRef("SERVICE PRINCIPAL"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() => 
{
    var example = Aws.Organizations.GetDelegatedAdministrators.Invoke(new()
    {
        ServicePrincipal = "SERVICE PRINCIPAL",
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.organizations.OrganizationsFunctions;
import com.pulumi.aws.organizations.inputs.GetDelegatedAdministratorsArgs;
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) {
        final var example = OrganizationsFunctions.getDelegatedAdministrators(GetDelegatedAdministratorsArgs.builder()
            .servicePrincipal("SERVICE PRINCIPAL")
            .build());
    }
}
variables:
  example:
    fn::invoke:
      function: aws:organizations:getDelegatedAdministrators
      arguments:
        servicePrincipal: SERVICE PRINCIPAL
Using getDelegatedAdministrators
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getDelegatedAdministrators(args: GetDelegatedAdministratorsArgs, opts?: InvokeOptions): Promise<GetDelegatedAdministratorsResult>
function getDelegatedAdministratorsOutput(args: GetDelegatedAdministratorsOutputArgs, opts?: InvokeOptions): Output<GetDelegatedAdministratorsResult>def get_delegated_administrators(service_principal: Optional[str] = None,
                                 opts: Optional[InvokeOptions] = None) -> GetDelegatedAdministratorsResult
def get_delegated_administrators_output(service_principal: Optional[pulumi.Input[str]] = None,
                                 opts: Optional[InvokeOptions] = None) -> Output[GetDelegatedAdministratorsResult]func GetDelegatedAdministrators(ctx *Context, args *GetDelegatedAdministratorsArgs, opts ...InvokeOption) (*GetDelegatedAdministratorsResult, error)
func GetDelegatedAdministratorsOutput(ctx *Context, args *GetDelegatedAdministratorsOutputArgs, opts ...InvokeOption) GetDelegatedAdministratorsResultOutput> Note: This function is named GetDelegatedAdministrators in the Go SDK.
public static class GetDelegatedAdministrators 
{
    public static Task<GetDelegatedAdministratorsResult> InvokeAsync(GetDelegatedAdministratorsArgs args, InvokeOptions? opts = null)
    public static Output<GetDelegatedAdministratorsResult> Invoke(GetDelegatedAdministratorsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetDelegatedAdministratorsResult> getDelegatedAdministrators(GetDelegatedAdministratorsArgs args, InvokeOptions options)
public static Output<GetDelegatedAdministratorsResult> getDelegatedAdministrators(GetDelegatedAdministratorsArgs args, InvokeOptions options)
fn::invoke:
  function: aws:organizations/getDelegatedAdministrators:getDelegatedAdministrators
  arguments:
    # arguments dictionaryThe following arguments are supported:
- ServicePrincipal string
- Specifies a service principal name. If specified, then the operation lists the delegated administrators only for the specified service. If you don't specify a service principal, the operation lists all delegated administrators for all services in your organization.
- ServicePrincipal string
- Specifies a service principal name. If specified, then the operation lists the delegated administrators only for the specified service. If you don't specify a service principal, the operation lists all delegated administrators for all services in your organization.
- servicePrincipal String
- Specifies a service principal name. If specified, then the operation lists the delegated administrators only for the specified service. If you don't specify a service principal, the operation lists all delegated administrators for all services in your organization.
- servicePrincipal string
- Specifies a service principal name. If specified, then the operation lists the delegated administrators only for the specified service. If you don't specify a service principal, the operation lists all delegated administrators for all services in your organization.
- service_principal str
- Specifies a service principal name. If specified, then the operation lists the delegated administrators only for the specified service. If you don't specify a service principal, the operation lists all delegated administrators for all services in your organization.
- servicePrincipal String
- Specifies a service principal name. If specified, then the operation lists the delegated administrators only for the specified service. If you don't specify a service principal, the operation lists all delegated administrators for all services in your organization.
getDelegatedAdministrators Result
The following output properties are available:
- DelegatedAdministrators List<GetDelegated Administrators Delegated Administrator> 
- The list of delegated administrators in your organization, which have the following attributes:
- Id string
- The provider-assigned unique ID for this managed resource.
- ServicePrincipal string
- DelegatedAdministrators []GetDelegated Administrators Delegated Administrator 
- The list of delegated administrators in your organization, which have the following attributes:
- Id string
- The provider-assigned unique ID for this managed resource.
- ServicePrincipal string
- delegatedAdministrators List<GetDelegated Administrators Delegated Administrator> 
- The list of delegated administrators in your organization, which have the following attributes:
- id String
- The provider-assigned unique ID for this managed resource.
- servicePrincipal String
- delegatedAdministrators GetDelegated Administrators Delegated Administrator[] 
- The list of delegated administrators in your organization, which have the following attributes:
- id string
- The provider-assigned unique ID for this managed resource.
- servicePrincipal string
- delegated_administrators Sequence[GetDelegated Administrators Delegated Administrator] 
- The list of delegated administrators in your organization, which have the following attributes:
- id str
- The provider-assigned unique ID for this managed resource.
- service_principal str
- delegatedAdministrators List<Property Map>
- The list of delegated administrators in your organization, which have the following attributes:
- id String
- The provider-assigned unique ID for this managed resource.
- servicePrincipal String
Supporting Types
GetDelegatedAdministratorsDelegatedAdministrator    
- Arn string
- The ARN of the delegated administrator's account.
- DelegationEnabled stringDate 
- The date when the account was made a delegated administrator.
- Email string
- The email address that is associated with the delegated administrator's AWS account.
- Id string
- The unique identifier (ID) of the delegated administrator's account.
- JoinedMethod string
- The method by which the delegated administrator's account joined the organization.
- JoinedTimestamp string
- The date when the delegated administrator's account became a part of the organization.
- Name string
- The friendly name of the delegated administrator's account.
- Status string
- The status of the delegated administrator's account in the organization.
- Arn string
- The ARN of the delegated administrator's account.
- DelegationEnabled stringDate 
- The date when the account was made a delegated administrator.
- Email string
- The email address that is associated with the delegated administrator's AWS account.
- Id string
- The unique identifier (ID) of the delegated administrator's account.
- JoinedMethod string
- The method by which the delegated administrator's account joined the organization.
- JoinedTimestamp string
- The date when the delegated administrator's account became a part of the organization.
- Name string
- The friendly name of the delegated administrator's account.
- Status string
- The status of the delegated administrator's account in the organization.
- arn String
- The ARN of the delegated administrator's account.
- delegationEnabled StringDate 
- The date when the account was made a delegated administrator.
- email String
- The email address that is associated with the delegated administrator's AWS account.
- id String
- The unique identifier (ID) of the delegated administrator's account.
- joinedMethod String
- The method by which the delegated administrator's account joined the organization.
- joinedTimestamp String
- The date when the delegated administrator's account became a part of the organization.
- name String
- The friendly name of the delegated administrator's account.
- status String
- The status of the delegated administrator's account in the organization.
- arn string
- The ARN of the delegated administrator's account.
- delegationEnabled stringDate 
- The date when the account was made a delegated administrator.
- email string
- The email address that is associated with the delegated administrator's AWS account.
- id string
- The unique identifier (ID) of the delegated administrator's account.
- joinedMethod string
- The method by which the delegated administrator's account joined the organization.
- joinedTimestamp string
- The date when the delegated administrator's account became a part of the organization.
- name string
- The friendly name of the delegated administrator's account.
- status string
- The status of the delegated administrator's account in the organization.
- arn str
- The ARN of the delegated administrator's account.
- delegation_enabled_ strdate 
- The date when the account was made a delegated administrator.
- email str
- The email address that is associated with the delegated administrator's AWS account.
- id str
- The unique identifier (ID) of the delegated administrator's account.
- joined_method str
- The method by which the delegated administrator's account joined the organization.
- joined_timestamp str
- The date when the delegated administrator's account became a part of the organization.
- name str
- The friendly name of the delegated administrator's account.
- status str
- The status of the delegated administrator's account in the organization.
- arn String
- The ARN of the delegated administrator's account.
- delegationEnabled StringDate 
- The date when the account was made a delegated administrator.
- email String
- The email address that is associated with the delegated administrator's AWS account.
- id String
- The unique identifier (ID) of the delegated administrator's account.
- joinedMethod String
- The method by which the delegated administrator's account joined the organization.
- joinedTimestamp String
- The date when the delegated administrator's account became a part of the organization.
- name String
- The friendly name of the delegated administrator's account.
- status String
- The status of the delegated administrator's account in the organization.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the awsTerraform Provider.