AWS v6.77.1 published on Friday, Apr 18, 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:
- Account
Id string - Account ID number of a delegated administrator account in the organization.
 
- Account
Id string - Account ID number of a delegated administrator account in the organization.
 
- account
Id String - Account ID number of a delegated administrator account in the organization.
 
- account
Id 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.
 
- account
Id String - Account ID number of a delegated administrator account in the organization.
 
getDelegatedServices Result
The following output properties are available:
- Account
Id string - Delegated
Services 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.
 
- Account
Id string - Delegated
Services []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 String - delegated
Services 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.
 
- account
Id string - delegated
Services 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.
 
- account
Id String - delegated
Services 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    
- Delegation
Enabled stringDate  - The date that the account became a delegated administrator for this service.
 - Service
Principal string - The name of an AWS service that can request an operation for the specified service.
 
- Delegation
Enabled stringDate  - The date that the account became a delegated administrator for this service.
 - Service
Principal string - The name of an AWS service that can request an operation for the specified service.
 
- delegation
Enabled StringDate  - The date that the account became a delegated administrator for this service.
 - service
Principal String - The name of an AWS service that can request an operation for the specified service.
 
- delegation
Enabled stringDate  - The date that the account became a delegated administrator for this service.
 - service
Principal 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.
 
- delegation
Enabled StringDate  - The date that the account became a delegated administrator for this service.
 - service
Principal 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.