AWS v6.73.0 published on Wednesday, Mar 19, 2025 by Pulumi
aws.organizations.getDelegatedServices
Explore with Pulumi AI
Get a list the AWS services for which the specified account is a delegated administrator
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = aws.organizations.getDelegatedServices({
    accountId: "AWS ACCOUNT ID",
});
import pulumi
import pulumi_aws as aws
example = aws.organizations.get_delegated_services(account_id="AWS ACCOUNT ID")
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.GetDelegatedServices(ctx, &organizations.GetDelegatedServicesArgs{
			AccountId: "AWS ACCOUNT ID",
		}, 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.GetDelegatedServices.Invoke(new()
    {
        AccountId = "AWS ACCOUNT ID",
    });
});
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.GetDelegatedServicesArgs;
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.getDelegatedServices(GetDelegatedServicesArgs.builder()
            .accountId("AWS ACCOUNT ID")
            .build());
    }
}
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)
public static Output<GetDelegatedServicesResult> getDelegatedServices(GetDelegatedServicesArgs args, InvokeOptions options)
fn::invoke:
  function: aws:organizations/getDelegatedServices:getDelegatedServices
  arguments:
    # arguments dictionaryThe following arguments are supported:
- AccountId string
- Account ID number of a delegated administrator account in the organization.
- AccountId string
- Account ID number of a delegated administrator account in the organization.
- accountId String
- Account ID number of a delegated administrator account in the organization.
- accountId string
- Account ID number of a delegated administrator account in the organization.
- account_id str
- Account ID number of a delegated administrator account in the organization.
- accountId String
- Account ID number of a delegated administrator account in the organization.
getDelegatedServices Result
The following output properties are available:
- AccountId string
- DelegatedServices List<GetDelegated Services Delegated Service> 
- 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 []GetDelegated Services Delegated Service 
- 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<GetDelegated Services Delegated Service> 
- 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 GetDelegated Services Delegated Service[] 
- 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[GetDelegated Services Delegated Service] 
- 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>
- 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    
- DelegationEnabled stringDate 
- 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.
- DelegationEnabled stringDate 
- 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.
- delegationEnabled StringDate 
- 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.
- delegationEnabled stringDate 
- 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_ strdate 
- 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.
- delegationEnabled StringDate 
- 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
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the awsTerraform Provider.