aws-native logo
AWS Native v0.55.0, Mar 28 23

aws-native.controltower.EnabledControl

Enables a control on a specified target.

Example Usage

Example

using System.Collections.Generic;
using Pulumi;
using AwsNative = Pulumi.AwsNative;

return await Deployment.RunAsync(() => 
{
    var myExampleControl = new AwsNative.ControlTower.EnabledControl("myExampleControl", new()
    {
        ControlIdentifier = "arn:aws:controltower:us-east-2::control/EXAMPLE_NAME",
        TargetIdentifier = "arn:aws:organizations::01234567890:ou/o-EXAMPLE/ou-zzxx-zzx0zzz2",
    });

});
package main

import (
	"github.com/pulumi/pulumi-aws-native/sdk/go/aws/controltower"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := controltower.NewEnabledControl(ctx, "myExampleControl", &controltower.EnabledControlArgs{
			ControlIdentifier: pulumi.String("arn:aws:controltower:us-east-2::control/EXAMPLE_NAME"),
			TargetIdentifier:  pulumi.String("arn:aws:organizations::01234567890:ou/o-EXAMPLE/ou-zzxx-zzx0zzz2"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_aws_native as aws_native

my_example_control = aws_native.controltower.EnabledControl("myExampleControl",
    control_identifier="arn:aws:controltower:us-east-2::control/EXAMPLE_NAME",
    target_identifier="arn:aws:organizations::01234567890:ou/o-EXAMPLE/ou-zzxx-zzx0zzz2")
import * as pulumi from "@pulumi/pulumi";
import * as aws_native from "@pulumi/aws-native";

const myExampleControl = new aws_native.controltower.EnabledControl("myExampleControl", {
    controlIdentifier: "arn:aws:controltower:us-east-2::control/EXAMPLE_NAME",
    targetIdentifier: "arn:aws:organizations::01234567890:ou/o-EXAMPLE/ou-zzxx-zzx0zzz2",
});

Coming soon!

Example

using System.Collections.Generic;
using Pulumi;
using AwsNative = Pulumi.AwsNative;

return await Deployment.RunAsync(() => 
{
    var myExampleControl = new AwsNative.ControlTower.EnabledControl("myExampleControl", new()
    {
        ControlIdentifier = "arn:aws:controltower:us-east-2::control/EXAMPLE_NAME",
        TargetIdentifier = "arn:aws:organizations::01234567890:ou/o-EXAMPLE/ou-zzxx-zzx0zzz2",
    });

});
package main

import (
	"github.com/pulumi/pulumi-aws-native/sdk/go/aws/controltower"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := controltower.NewEnabledControl(ctx, "myExampleControl", &controltower.EnabledControlArgs{
			ControlIdentifier: pulumi.String("arn:aws:controltower:us-east-2::control/EXAMPLE_NAME"),
			TargetIdentifier:  pulumi.String("arn:aws:organizations::01234567890:ou/o-EXAMPLE/ou-zzxx-zzx0zzz2"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_aws_native as aws_native

my_example_control = aws_native.controltower.EnabledControl("myExampleControl",
    control_identifier="arn:aws:controltower:us-east-2::control/EXAMPLE_NAME",
    target_identifier="arn:aws:organizations::01234567890:ou/o-EXAMPLE/ou-zzxx-zzx0zzz2")
import * as pulumi from "@pulumi/pulumi";
import * as aws_native from "@pulumi/aws-native";

const myExampleControl = new aws_native.controltower.EnabledControl("myExampleControl", {
    controlIdentifier: "arn:aws:controltower:us-east-2::control/EXAMPLE_NAME",
    targetIdentifier: "arn:aws:organizations::01234567890:ou/o-EXAMPLE/ou-zzxx-zzx0zzz2",
});

Coming soon!

Create EnabledControl Resource

new EnabledControl(name: string, args: EnabledControlArgs, opts?: CustomResourceOptions);
@overload
def EnabledControl(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   control_identifier: Optional[str] = None,
                   target_identifier: Optional[str] = None)
@overload
def EnabledControl(resource_name: str,
                   args: EnabledControlArgs,
                   opts: Optional[ResourceOptions] = None)
func NewEnabledControl(ctx *Context, name string, args EnabledControlArgs, opts ...ResourceOption) (*EnabledControl, error)
public EnabledControl(string name, EnabledControlArgs args, CustomResourceOptions? opts = null)
public EnabledControl(String name, EnabledControlArgs args)
public EnabledControl(String name, EnabledControlArgs args, CustomResourceOptions options)
type: aws-native:controltower:EnabledControl
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args EnabledControlArgs
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 EnabledControlArgs
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 EnabledControlArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args EnabledControlArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args EnabledControlArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

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

ControlIdentifier string

Arn of the control.

TargetIdentifier string

Arn for Organizational unit to which the control needs to be applied

ControlIdentifier string

Arn of the control.

TargetIdentifier string

Arn for Organizational unit to which the control needs to be applied

controlIdentifier String

Arn of the control.

targetIdentifier String

Arn for Organizational unit to which the control needs to be applied

controlIdentifier string

Arn of the control.

targetIdentifier string

Arn for Organizational unit to which the control needs to be applied

control_identifier str

Arn of the control.

target_identifier str

Arn for Organizational unit to which the control needs to be applied

controlIdentifier String

Arn of the control.

targetIdentifier String

Arn for Organizational unit to which the control needs to be applied

Outputs

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

Id string

The provider-assigned unique ID for this managed resource.

Id string

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

id string

The provider-assigned unique ID for this managed resource.

id str

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

Package Details

Repository
AWS Native pulumi/pulumi-aws-native
License
Apache-2.0