1. Packages
  2. AWS Native
  3. API Docs
  4. controltower
  5. EnabledControl

AWS Native is in preview. AWS Classic is fully supported.

AWS Native v0.100.0 published on Wednesday, Mar 27, 2024 by Pulumi

aws-native.controltower.EnabledControl

Explore with Pulumi AI

aws-native logo

AWS Native is in preview. AWS Classic is fully supported.

AWS Native v0.100.0 published on Wednesday, Mar 27, 2024 by Pulumi

    Enables a control on a specified target.

    Example Usage

    Example

    using System.Collections.Generic;
    using System.Linq;
    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 System.Linq;
    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,
                       parameters: Optional[Sequence[EnabledControlParameterArgs]] = None,
                       tags: Optional[Sequence[_root_inputs.TagArgs]] = 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
    Parameters List<Pulumi.AwsNative.ControlTower.Inputs.EnabledControlParameter>
    Parameters to configure the enabled control behavior.
    Tags List<Pulumi.AwsNative.Inputs.Tag>
    A set of tags to assign to the enabled control.
    ControlIdentifier string
    Arn of the control.
    TargetIdentifier string
    Arn for Organizational unit to which the control needs to be applied
    Parameters []EnabledControlParameterArgs
    Parameters to configure the enabled control behavior.
    Tags TagArgs
    A set of tags to assign to the enabled control.
    controlIdentifier String
    Arn of the control.
    targetIdentifier String
    Arn for Organizational unit to which the control needs to be applied
    parameters List<EnabledControlParameter>
    Parameters to configure the enabled control behavior.
    tags List<Tag>
    A set of tags to assign to the enabled control.
    controlIdentifier string
    Arn of the control.
    targetIdentifier string
    Arn for Organizational unit to which the control needs to be applied
    parameters EnabledControlParameter[]
    Parameters to configure the enabled control behavior.
    tags Tag[]
    A set of tags to assign to the enabled control.
    control_identifier str
    Arn of the control.
    target_identifier str
    Arn for Organizational unit to which the control needs to be applied
    parameters Sequence[EnabledControlParameterArgs]
    Parameters to configure the enabled control behavior.
    tags TagArgs]
    A set of tags to assign to the enabled control.
    controlIdentifier String
    Arn of the control.
    targetIdentifier String
    Arn for Organizational unit to which the control needs to be applied
    parameters List<Property Map>
    Parameters to configure the enabled control behavior.
    tags List<Property Map>
    A set of tags to assign to the enabled control.

    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.

    Supporting Types

    EnabledControlParameter, EnabledControlParameterArgs

    Key string
    Value List<object> | string | double | object | bool
    Key string
    Value []interface{} | string | float64 | interface{} | bool
    key String
    value List<Object> | String | Double | Object | Boolean
    key string
    value (string | number | any | boolean)[] | string | number | any | boolean
    key str
    value Sequence[Union[str, float, Any, bool]] | str | float | Any | bool
    key String
    value List<String | Number | Any | Boolean> | String | Number | Any | Boolean

    Tag, TagArgs

    Key string
    The key name of the tag
    Value string
    The value of the tag
    Key string
    The key name of the tag
    Value string
    The value of the tag
    key String
    The key name of the tag
    value String
    The value of the tag
    key string
    The key name of the tag
    value string
    The value of the tag
    key str
    The key name of the tag
    value str
    The value of the tag
    key String
    The key name of the tag
    value String
    The value of the tag

    Package Details

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

    AWS Native is in preview. AWS Classic is fully supported.

    AWS Native v0.100.0 published on Wednesday, Mar 27, 2024 by Pulumi