aws.organizations.DelegatedAdministrator
Explore with Pulumi AI
Provides a resource to manage an AWS Organizations Delegated Administrator.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.organizations.DelegatedAdministrator("example", {
accountId: "123456789012",
servicePrincipal: "principal",
});
import pulumi
import pulumi_aws as aws
example = aws.organizations.DelegatedAdministrator("example",
account_id="123456789012",
service_principal="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.NewDelegatedAdministrator(ctx, "example", &organizations.DelegatedAdministratorArgs{
AccountId: pulumi.String("123456789012"),
ServicePrincipal: pulumi.String("principal"),
})
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 = new Aws.Organizations.DelegatedAdministrator("example", new()
{
AccountId = "123456789012",
ServicePrincipal = "principal",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.organizations.DelegatedAdministrator;
import com.pulumi.aws.organizations.DelegatedAdministratorArgs;
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) {
var example = new DelegatedAdministrator("example", DelegatedAdministratorArgs.builder()
.accountId("123456789012")
.servicePrincipal("principal")
.build());
}
}
resources:
example:
type: aws:organizations:DelegatedAdministrator
properties:
accountId: '123456789012'
servicePrincipal: principal
Create DelegatedAdministrator Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DelegatedAdministrator(name: string, args: DelegatedAdministratorArgs, opts?: CustomResourceOptions);
@overload
def DelegatedAdministrator(resource_name: str,
args: DelegatedAdministratorArgs,
opts: Optional[ResourceOptions] = None)
@overload
def DelegatedAdministrator(resource_name: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
service_principal: Optional[str] = None)
func NewDelegatedAdministrator(ctx *Context, name string, args DelegatedAdministratorArgs, opts ...ResourceOption) (*DelegatedAdministrator, error)
public DelegatedAdministrator(string name, DelegatedAdministratorArgs args, CustomResourceOptions? opts = null)
public DelegatedAdministrator(String name, DelegatedAdministratorArgs args)
public DelegatedAdministrator(String name, DelegatedAdministratorArgs args, CustomResourceOptions options)
type: aws:organizations:DelegatedAdministrator
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args DelegatedAdministratorArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args DelegatedAdministratorArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args DelegatedAdministratorArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DelegatedAdministratorArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DelegatedAdministratorArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var delegatedAdministratorResource = new Aws.Organizations.DelegatedAdministrator("delegatedAdministratorResource", new()
{
AccountId = "string",
ServicePrincipal = "string",
});
example, err := organizations.NewDelegatedAdministrator(ctx, "delegatedAdministratorResource", &organizations.DelegatedAdministratorArgs{
AccountId: pulumi.String("string"),
ServicePrincipal: pulumi.String("string"),
})
var delegatedAdministratorResource = new DelegatedAdministrator("delegatedAdministratorResource", DelegatedAdministratorArgs.builder()
.accountId("string")
.servicePrincipal("string")
.build());
delegated_administrator_resource = aws.organizations.DelegatedAdministrator("delegatedAdministratorResource",
account_id="string",
service_principal="string")
const delegatedAdministratorResource = new aws.organizations.DelegatedAdministrator("delegatedAdministratorResource", {
accountId: "string",
servicePrincipal: "string",
});
type: aws:organizations:DelegatedAdministrator
properties:
accountId: string
servicePrincipal: string
DelegatedAdministrator Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The DelegatedAdministrator resource accepts the following input properties:
- Account
Id string - The account ID number of the member account in the organization to register as a delegated administrator.
- Service
Principal string - The service principal of the AWS service for which you want to make the member account a delegated administrator.
- Account
Id string - The account ID number of the member account in the organization to register as a delegated administrator.
- Service
Principal string - The service principal of the AWS service for which you want to make the member account a delegated administrator.
- account
Id String - The account ID number of the member account in the organization to register as a delegated administrator.
- service
Principal String - The service principal of the AWS service for which you want to make the member account a delegated administrator.
- account
Id string - The account ID number of the member account in the organization to register as a delegated administrator.
- service
Principal string - The service principal of the AWS service for which you want to make the member account a delegated administrator.
- account_
id str - The account ID number of the member account in the organization to register as a delegated administrator.
- service_
principal str - The service principal of the AWS service for which you want to make the member account a delegated administrator.
- account
Id String - The account ID number of the member account in the organization to register as a delegated administrator.
- service
Principal String - The service principal of the AWS service for which you want to make the member account a delegated administrator.
Outputs
All input properties are implicitly available as output properties. Additionally, the DelegatedAdministrator resource produces the following output properties:
- Arn string
- The Amazon Resource Name (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 provider-assigned unique ID for this managed resource.
- 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 Amazon Resource Name (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 provider-assigned unique ID for this managed resource.
- 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 Amazon Resource Name (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 provider-assigned unique ID for this managed resource.
- 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 Amazon Resource Name (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 provider-assigned unique ID for this managed resource.
- 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 Amazon Resource Name (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 provider-assigned unique ID for this managed resource.
- 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 Amazon Resource Name (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 provider-assigned unique ID for this managed resource.
- 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.
Look up Existing DelegatedAdministrator Resource
Get an existing DelegatedAdministrator resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: DelegatedAdministratorState, opts?: CustomResourceOptions): DelegatedAdministrator
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
arn: Optional[str] = None,
delegation_enabled_date: Optional[str] = None,
email: Optional[str] = None,
joined_method: Optional[str] = None,
joined_timestamp: Optional[str] = None,
name: Optional[str] = None,
service_principal: Optional[str] = None,
status: Optional[str] = None) -> DelegatedAdministrator
func GetDelegatedAdministrator(ctx *Context, name string, id IDInput, state *DelegatedAdministratorState, opts ...ResourceOption) (*DelegatedAdministrator, error)
public static DelegatedAdministrator Get(string name, Input<string> id, DelegatedAdministratorState? state, CustomResourceOptions? opts = null)
public static DelegatedAdministrator get(String name, Output<String> id, DelegatedAdministratorState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Account
Id string - The account ID number of the member account in the organization to register as a delegated administrator.
- Arn string
- The Amazon Resource Name (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.
- 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.
- Service
Principal string - The service principal of the AWS service for which you want to make the member account a delegated administrator.
- Status string
- The status of the delegated administrator's account in the organization.
- Account
Id string - The account ID number of the member account in the organization to register as a delegated administrator.
- Arn string
- The Amazon Resource Name (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.
- 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.
- Service
Principal string - The service principal of the AWS service for which you want to make the member account a delegated administrator.
- Status string
- The status of the delegated administrator's account in the organization.
- account
Id String - The account ID number of the member account in the organization to register as a delegated administrator.
- arn String
- The Amazon Resource Name (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.
- 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.
- service
Principal String - The service principal of the AWS service for which you want to make the member account a delegated administrator.
- status String
- The status of the delegated administrator's account in the organization.
- account
Id string - The account ID number of the member account in the organization to register as a delegated administrator.
- arn string
- The Amazon Resource Name (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.
- 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.
- service
Principal string - The service principal of the AWS service for which you want to make the member account a delegated administrator.
- status string
- The status of the delegated administrator's account in the organization.
- account_
id str - The account ID number of the member account in the organization to register as a delegated administrator.
- arn str
- The Amazon Resource Name (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.
- 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.
- service_
principal str - The service principal of the AWS service for which you want to make the member account a delegated administrator.
- status str
- The status of the delegated administrator's account in the organization.
- account
Id String - The account ID number of the member account in the organization to register as a delegated administrator.
- arn String
- The Amazon Resource Name (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.
- 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.
- service
Principal String - The service principal of the AWS service for which you want to make the member account a delegated administrator.
- status String
- The status of the delegated administrator's account in the organization.
Import
Using pulumi import
, import aws_organizations_delegated_administrator
using the account ID and its service principal. For example:
$ pulumi import aws:organizations/delegatedAdministrator:DelegatedAdministrator example 123456789012/config.amazonaws.com
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.