Try AWS Native preview for resources not in the classic version.
AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi
aws.organizations.getDelegatedAdministrators
Explore with Pulumi AI
Try AWS Native preview for resources not in the classic version.
AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi
Get a list of AWS accounts that are designated as delegated administrators in this organization
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = aws.organizations.getDelegatedAdministrators({
servicePrincipal: "SERVICE PRINCIPAL",
});
import pulumi
import pulumi_aws as aws
example = aws.organizations.get_delegated_administrators(service_principal="SERVICE PRINCIPAL")
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.GetDelegatedAdministrators(ctx, &organizations.GetDelegatedAdministratorsArgs{
ServicePrincipal: pulumi.StringRef("SERVICE PRINCIPAL"),
}, 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.GetDelegatedAdministrators.Invoke(new()
{
ServicePrincipal = "SERVICE PRINCIPAL",
});
});
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());
}
}
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:
- Service
Principal 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 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 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 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.
- service
Principal 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:
- Delegated
Administrators List<GetDelegated Administrators Delegated Administrator> - The list of delegated administrators in your organization, which have the following attributes:
- Id string
- The provider-assigned unique ID for this managed resource.
- Service
Principal string
- Delegated
Administrators []GetDelegated Administrators Delegated Administrator - The list of delegated administrators in your organization, which have the following attributes:
- Id string
- The provider-assigned unique ID for this managed resource.
- Service
Principal string
- delegated
Administrators List<GetDelegated Administrators Delegated Administrator> - The list of delegated administrators in your organization, which have the following attributes:
- id String
- The provider-assigned unique ID for this managed resource.
- service
Principal String
- delegated
Administrators GetDelegated Administrators Delegated Administrator[] - The list of delegated administrators in your organization, which have the following attributes:
- id string
- The provider-assigned unique ID for this managed resource.
- service
Principal string
- delegated_
administrators Sequence[GetDelegated Administrators Delegated Administrator] - 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
- delegated
Administrators 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.
- service
Principal String
Supporting Types
GetDelegatedAdministratorsDelegatedAdministrator
- Arn string
- The ARN of the delegated administrator's account.
- Delegation
Enabled stringDate - 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.
- Joined
Method string - The method by which the delegated administrator's account joined the organization.
- Joined
Timestamp 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.
- Delegation
Enabled stringDate - 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.
- Joined
Method string - The method by which the delegated administrator's account joined the organization.
- Joined
Timestamp 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.
- delegation
Enabled StringDate - 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.
- joined
Method String - The method by which the delegated administrator's account joined the organization.
- joined
Timestamp 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.
- delegation
Enabled stringDate - 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.
- joined
Method string - The method by which the delegated administrator's account joined the organization.
- joined
Timestamp 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_ strdate - 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.
- delegation
Enabled StringDate - 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.
- joined
Method String - The method by which the delegated administrator's account joined the organization.
- joined
Timestamp 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
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.
Try AWS Native preview for resources not in the classic version.
AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi