Try AWS Native preview for resources not in the classic version.
aws.auditmanager.OrganizationAdminAccountRegistration
Explore with Pulumi AI
Try AWS Native preview for resources not in the classic version.
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: "012345678901"});
import pulumi
import pulumi_aws as aws
example = aws.auditmanager.OrganizationAdminAccountRegistration("example", admin_account_id="012345678901")
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("012345678901"),
})
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.Auditmanager.OrganizationAdminAccountRegistration("example", new()
{
AdminAccountId = "012345678901",
});
});
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("012345678901")
.build());
}
}
resources:
example:
type: aws:auditmanager:OrganizationAdminAccountRegistration
properties:
adminAccountId: '012345678901'
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 string
- The unique name of the resource.
- args OrganizationAdminAccountRegistrationArgs
- 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 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 string
- The unique name of the resource.
- args OrganizationAdminAccountRegistrationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args OrganizationAdminAccountRegistrationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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",
});
example, err := auditmanager.NewOrganizationAdminAccountRegistration(ctx, "organizationAdminAccountRegistrationResource", &auditmanager.OrganizationAdminAccountRegistrationArgs{
AdminAccountId: pulumi.String("string"),
})
var organizationAdminAccountRegistrationResource = new OrganizationAdminAccountRegistration("organizationAdminAccountRegistrationResource", OrganizationAdminAccountRegistrationArgs.builder()
.adminAccountId("string")
.build());
organization_admin_account_registration_resource = aws.auditmanager.OrganizationAdminAccountRegistration("organizationAdminAccountRegistrationResource", admin_account_id="string")
const organizationAdminAccountRegistrationResource = new aws.auditmanager.OrganizationAdminAccountRegistration("organizationAdminAccountRegistrationResource", {adminAccountId: "string"});
type: aws:auditmanager:OrganizationAdminAccountRegistration
properties:
adminAccountId: string
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
The OrganizationAdminAccountRegistration resource accepts the following input properties:
- Admin
Account stringId - Identifier for the organization administrator account.
- Admin
Account stringId - Identifier for the organization administrator account.
- admin
Account StringId - Identifier for the organization administrator account.
- admin
Account stringId - Identifier for the organization administrator account.
- admin_
account_ strid - Identifier for the organization administrator account.
- admin
Account StringId - 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.
- Organization
Id string - Identifier for the organization.
- Id string
- The provider-assigned unique ID for this managed resource.
- Organization
Id string - Identifier for the organization.
- id String
- The provider-assigned unique ID for this managed resource.
- organization
Id String - Identifier for the organization.
- id string
- The provider-assigned unique ID for this managed resource.
- organization
Id 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.
- organization
Id 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)
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.
- Admin
Account stringId - Identifier for the organization administrator account.
- Organization
Id string - Identifier for the organization.
- Admin
Account stringId - Identifier for the organization administrator account.
- Organization
Id string - Identifier for the organization.
- admin
Account StringId - Identifier for the organization administrator account.
- organization
Id String - Identifier for the organization.
- admin
Account stringId - Identifier for the organization administrator account.
- organization
Id string - Identifier for the organization.
- admin_
account_ strid - Identifier for the organization administrator account.
- organization_
id str - Identifier for the organization.
- admin
Account StringId - Identifier for the organization administrator account.
- organization
Id 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 012345678901
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.
Try AWS Native preview for resources not in the classic version.