1. Packages
  2. AWS
  3. API Docs
  4. auditmanager
  5. OrganizationAdminAccountRegistration
AWS v6.78.0 published on Thursday, Apr 24, 2025 by Pulumi

aws.auditmanager.OrganizationAdminAccountRegistration

Explore with Pulumi AI

Resource for managing AWS Audit Manager Organization Admin Account Registration.

Example Usage

Basic Usage

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = new aws.auditmanager.OrganizationAdminAccountRegistration("example", {adminAccountId: "123456789012"});
Copy
import pulumi
import pulumi_aws as aws

example = aws.auditmanager.OrganizationAdminAccountRegistration("example", admin_account_id="123456789012")
Copy
package main

import (
	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/auditmanager"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := auditmanager.NewOrganizationAdminAccountRegistration(ctx, "example", &auditmanager.OrganizationAdminAccountRegistrationArgs{
			AdminAccountId: pulumi.String("123456789012"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;

return await Deployment.RunAsync(() => 
{
    var example = new Aws.Auditmanager.OrganizationAdminAccountRegistration("example", new()
    {
        AdminAccountId = "123456789012",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.auditmanager.OrganizationAdminAccountRegistration;
import com.pulumi.aws.auditmanager.OrganizationAdminAccountRegistrationArgs;
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 OrganizationAdminAccountRegistration("example", OrganizationAdminAccountRegistrationArgs.builder()
            .adminAccountId("123456789012")
            .build());

    }
}
Copy
resources:
  example:
    type: aws:auditmanager:OrganizationAdminAccountRegistration
    properties:
      adminAccountId: '123456789012'
Copy

Create OrganizationAdminAccountRegistration Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new OrganizationAdminAccountRegistration(name: string, args: OrganizationAdminAccountRegistrationArgs, opts?: CustomResourceOptions);
@overload
def OrganizationAdminAccountRegistration(resource_name: str,
                                         args: OrganizationAdminAccountRegistrationArgs,
                                         opts: Optional[ResourceOptions] = None)

@overload
def OrganizationAdminAccountRegistration(resource_name: str,
                                         opts: Optional[ResourceOptions] = None,
                                         admin_account_id: Optional[str] = None)
func NewOrganizationAdminAccountRegistration(ctx *Context, name string, args OrganizationAdminAccountRegistrationArgs, opts ...ResourceOption) (*OrganizationAdminAccountRegistration, error)
public OrganizationAdminAccountRegistration(string name, OrganizationAdminAccountRegistrationArgs args, CustomResourceOptions? opts = null)
public OrganizationAdminAccountRegistration(String name, OrganizationAdminAccountRegistrationArgs args)
public OrganizationAdminAccountRegistration(String name, OrganizationAdminAccountRegistrationArgs args, CustomResourceOptions options)
type: aws:auditmanager:OrganizationAdminAccountRegistration
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. OrganizationAdminAccountRegistrationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. OrganizationAdminAccountRegistrationArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. OrganizationAdminAccountRegistrationArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. OrganizationAdminAccountRegistrationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. OrganizationAdminAccountRegistrationArgs
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 organizationAdminAccountRegistrationResource = new Aws.Auditmanager.OrganizationAdminAccountRegistration("organizationAdminAccountRegistrationResource", new()
{
    AdminAccountId = "string",
});
Copy
example, err := auditmanager.NewOrganizationAdminAccountRegistration(ctx, "organizationAdminAccountRegistrationResource", &auditmanager.OrganizationAdminAccountRegistrationArgs{
	AdminAccountId: pulumi.String("string"),
})
Copy
var organizationAdminAccountRegistrationResource = new OrganizationAdminAccountRegistration("organizationAdminAccountRegistrationResource", OrganizationAdminAccountRegistrationArgs.builder()
    .adminAccountId("string")
    .build());
Copy
organization_admin_account_registration_resource = aws.auditmanager.OrganizationAdminAccountRegistration("organizationAdminAccountRegistrationResource", admin_account_id="string")
Copy
const organizationAdminAccountRegistrationResource = new aws.auditmanager.OrganizationAdminAccountRegistration("organizationAdminAccountRegistrationResource", {adminAccountId: "string"});
Copy
type: aws:auditmanager:OrganizationAdminAccountRegistration
properties:
    adminAccountId: string
Copy

OrganizationAdminAccountRegistration 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 OrganizationAdminAccountRegistration resource accepts the following input properties:

AdminAccountId This property is required. string
Identifier for the organization administrator account.
AdminAccountId This property is required. string
Identifier for the organization administrator account.
adminAccountId This property is required. String
Identifier for the organization administrator account.
adminAccountId This property is required. string
Identifier for the organization administrator account.
admin_account_id This property is required. str
Identifier for the organization administrator account.
adminAccountId This property is required. String
Identifier for the organization administrator account.

Outputs

All input properties are implicitly available as output properties. Additionally, the OrganizationAdminAccountRegistration resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
OrganizationId string
Identifier for the organization.
Id string
The provider-assigned unique ID for this managed resource.
OrganizationId string
Identifier for the organization.
id String
The provider-assigned unique ID for this managed resource.
organizationId String
Identifier for the organization.
id string
The provider-assigned unique ID for this managed resource.
organizationId string
Identifier for the organization.
id str
The provider-assigned unique ID for this managed resource.
organization_id str
Identifier for the organization.
id String
The provider-assigned unique ID for this managed resource.
organizationId String
Identifier for the organization.

Look up Existing OrganizationAdminAccountRegistration Resource

Get an existing OrganizationAdminAccountRegistration 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?: OrganizationAdminAccountRegistrationState, opts?: CustomResourceOptions): OrganizationAdminAccountRegistration
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        admin_account_id: Optional[str] = None,
        organization_id: Optional[str] = None) -> OrganizationAdminAccountRegistration
func GetOrganizationAdminAccountRegistration(ctx *Context, name string, id IDInput, state *OrganizationAdminAccountRegistrationState, opts ...ResourceOption) (*OrganizationAdminAccountRegistration, error)
public static OrganizationAdminAccountRegistration Get(string name, Input<string> id, OrganizationAdminAccountRegistrationState? state, CustomResourceOptions? opts = null)
public static OrganizationAdminAccountRegistration get(String name, Output<String> id, OrganizationAdminAccountRegistrationState state, CustomResourceOptions options)
resources:  _:    type: aws:auditmanager:OrganizationAdminAccountRegistration    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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.
The following state arguments are supported:
AdminAccountId string
Identifier for the organization administrator account.
OrganizationId string
Identifier for the organization.
AdminAccountId string
Identifier for the organization administrator account.
OrganizationId string
Identifier for the organization.
adminAccountId String
Identifier for the organization administrator account.
organizationId String
Identifier for the organization.
adminAccountId string
Identifier for the organization administrator account.
organizationId string
Identifier for the organization.
admin_account_id str
Identifier for the organization administrator account.
organization_id str
Identifier for the organization.
adminAccountId String
Identifier for the organization administrator account.
organizationId String
Identifier for the organization.

Import

Using pulumi import, import Audit Manager Organization Admin Account Registration using the id. For example:

$ pulumi import aws:auditmanager/organizationAdminAccountRegistration:OrganizationAdminAccountRegistration example 123456789012
Copy

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.