getDelegatedAdministrators

Get a list the AWS accounts that are designated as delegated administrators in this organization

Example Usage

using System.Collections.Generic;
using Pulumi;
using Aws = Pulumi.Aws;

return await Deployment.RunAsync(() => 
{
    var example = Aws.Organizations.GetDelegatedAdministrators.Invoke(new()
    {
        ServicePrincipal = "SERVICE PRINCIPAL",
    });

});
package main

import (
	"github.com/pulumi/pulumi-aws/sdk/v5/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
	})
}
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());

    }
}
import pulumi
import pulumi_aws as aws

example = aws.organizations.get_delegated_administrators(service_principal="SERVICE PRINCIPAL")
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = aws.organizations.getDelegatedAdministrators({
    servicePrincipal: "SERVICE PRINCIPAL",
});
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)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: aws:organizations/getDelegatedAdministrators:getDelegatedAdministrators
  arguments:
    # arguments dictionary

The 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<GetDelegatedAdministratorsDelegatedAdministrator>

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 []GetDelegatedAdministratorsDelegatedAdministrator

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<GetDelegatedAdministratorsDelegatedAdministrator>

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 GetDelegatedAdministratorsDelegatedAdministrator[]

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[GetDelegatedAdministratorsDelegatedAdministrator]

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.

DelegationEnabledDate string

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.

DelegationEnabledDate string

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.

delegationEnabledDate String

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.

delegationEnabledDate string

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_date str

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.

delegationEnabledDate String

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
https://github.com/pulumi/pulumi-aws
License
Apache-2.0
Notes

This Pulumi package is based on the aws Terraform Provider.