1. Packages
  2. AWS Classic
  3. API Docs
  4. organizations
  5. getDelegatedServices

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.41.0 published on Tuesday, Jun 18, 2024 by Pulumi

aws.organizations.getDelegatedServices

Explore with Pulumi AI

aws logo

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.41.0 published on Tuesday, Jun 18, 2024 by Pulumi

    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)
    // 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
    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<GetDelegatedServicesDelegatedService>
    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
    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>
    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[]
    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]
    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

    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
    AWS Classic pulumi/pulumi-aws
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aws Terraform Provider.
    aws logo

    Try AWS Native preview for resources not in the classic version.

    AWS Classic v6.41.0 published on Tuesday, Jun 18, 2024 by Pulumi