AWS Classic

Pulumi Official
Package maintained by Pulumi
v5.10.0 published on Monday, Jul 11, 2022 by Pulumi

getDelegatedServices

Get a list the AWS services for which the specified account is a delegated administrator

Example Usage

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
    public MyStack()
    {
        var example = Output.Create(Aws.Organizations.GetDelegatedServices.InvokeAsync(new Aws.Organizations.GetDelegatedServicesArgs
        {
            AccountId = "AWS ACCOUNT ID",
        }));
    }

}
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.GetDelegatedServices(ctx, &organizations.GetDelegatedServicesArgs{
			AccountId: "AWS ACCOUNT ID",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var example = Output.of(OrganizationsFunctions.getDelegatedServices(GetDelegatedServicesArgs.builder()
            .accountId("AWS ACCOUNT ID")
            .build()));

    }
}
import pulumi
import pulumi_aws as aws

example = aws.organizations.get_delegated_services(account_id="AWS ACCOUNT ID")
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = pulumi.output(aws.organizations.getDelegatedServices({
    accountId: "AWS ACCOUNT ID",
}));
variables:
  example:
    Fn::Invoke:
      Function: aws:organizations:getDelegatedServices
      Arguments:
        accountId: AWS ACCOUNT ID

Using getDelegatedServices

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 getDelegatedServices(args: GetDelegatedServicesArgs, opts?: InvokeOptions): Promise<GetDelegatedServicesResult>
function getDelegatedServicesOutput(args: GetDelegatedServicesOutputArgs, opts?: InvokeOptions): Output<GetDelegatedServicesResult>
def get_delegated_services(account_id: Optional[str] = None,
                           opts: Optional[InvokeOptions] = None) -> GetDelegatedServicesResult
def get_delegated_services_output(account_id: Optional[pulumi.Input[str]] = None,
                           opts: Optional[InvokeOptions] = None) -> Output[GetDelegatedServicesResult]
func GetDelegatedServices(ctx *Context, args *GetDelegatedServicesArgs, opts ...InvokeOption) (*GetDelegatedServicesResult, error)
func GetDelegatedServicesOutput(ctx *Context, args *GetDelegatedServicesOutputArgs, opts ...InvokeOption) GetDelegatedServicesResultOutput

> Note: This function is named GetDelegatedServices in the Go SDK.

public static class GetDelegatedServices 
{
    public static Task<GetDelegatedServicesResult> InvokeAsync(GetDelegatedServicesArgs args, InvokeOptions? opts = null)
    public static Output<GetDelegatedServicesResult> Invoke(GetDelegatedServicesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetDelegatedServicesResult> getDelegatedServices(GetDelegatedServicesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: aws:organizations/getDelegatedServices:getDelegatedServices
  Arguments:
    # Arguments dictionary

The following arguments are supported:

AccountId string

The account ID number of a delegated administrator account in the organization.

AccountId string

The account ID number of a delegated administrator account in the organization.

accountId String

The account ID number of a delegated administrator account in the organization.

accountId string

The account ID number of a delegated administrator account in the organization.

account_id str

The account ID number of a delegated administrator account in the organization.

accountId String

The account ID number of a delegated administrator account in the organization.

getDelegatedServices Result

The following output properties are available:

AccountId string
DelegatedServices List<GetDelegatedServicesDelegatedService>

The services for which the account is a delegated administrator, which have the following attributes:

Id string

The provider-assigned unique ID for this managed resource.

AccountId string
DelegatedServices []GetDelegatedServicesDelegatedService

The services for which the account is a delegated administrator, which have the following attributes:

Id string

The provider-assigned unique ID for this managed resource.

accountId String
delegatedServices List<GetDelegatedServicesDelegatedService>

The services for which the account is a delegated administrator, which have the following attributes:

id String

The provider-assigned unique ID for this managed resource.

accountId string
delegatedServices GetDelegatedServicesDelegatedService[]

The services for which the account is a delegated administrator, which have the following attributes:

id string

The provider-assigned unique ID for this managed resource.

account_id str
delegated_services Sequence[GetDelegatedServicesDelegatedService]

The services for which the account is a delegated administrator, which have the following attributes:

id str

The provider-assigned unique ID for this managed resource.

accountId String
delegatedServices List<Property Map>

The services for which the account is a delegated administrator, which have the following attributes:

id String

The provider-assigned unique ID for this managed resource.

Supporting Types

GetDelegatedServicesDelegatedService

DelegationEnabledDate string

The date that the account became a delegated administrator for this service.

ServicePrincipal string

The name of an AWS service that can request an operation for the specified service.

DelegationEnabledDate string

The date that the account became a delegated administrator for this service.

ServicePrincipal string

The name of an AWS service that can request an operation for the specified service.

delegationEnabledDate String

The date that the account became a delegated administrator for this service.

servicePrincipal String

The name of an AWS service that can request an operation for the specified service.

delegationEnabledDate string

The date that the account became a delegated administrator for this service.

servicePrincipal string

The name of an AWS service that can request an operation for the specified service.

delegation_enabled_date str

The date that the account became a delegated administrator for this service.

service_principal str

The name of an AWS service that can request an operation for the specified service.

delegationEnabledDate String

The date that the account became a delegated administrator for this service.

servicePrincipal String

The name of an AWS service that can request an operation for the specified service.

Package Details

Repository
https://github.com/pulumi/pulumi-aws
License
Apache-2.0
Notes

This Pulumi package is based on the aws Terraform Provider.