We recommend new projects start with resources from the AWS provider.
aws-native.controltower.EnabledControl
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
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
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new EnabledControl(name: string, args: EnabledControlArgs, opts?: CustomResourceOptions);
@overload
def EnabledControl(resource_name: str,
args: EnabledControlArgs,
opts: Optional[ResourceOptions] = None)
@overload
def EnabledControl(resource_name: str,
opts: Optional[ResourceOptions] = None,
control_identifier: Optional[str] = None,
target_identifier: Optional[str] = None,
parameters: Optional[Sequence[EnabledControlParameterArgs]] = None,
tags: Optional[Sequence[_root_inputs.TagArgs]] = 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.
Parameters
- 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:
- Control
Identifier string - Arn of the control.
- Target
Identifier string - Arn for Organizational unit to which the control needs to be applied
- Parameters
List<Pulumi.
Aws Native. Control Tower. Inputs. Enabled Control Parameter> - Parameters to configure the enabled control behavior.
- List<Pulumi.
Aws Native. Inputs. Tag> - A set of tags to assign to the enabled control.
- Control
Identifier string - Arn of the control.
- Target
Identifier string - Arn for Organizational unit to which the control needs to be applied
- Parameters
[]Enabled
Control Parameter Args - Parameters to configure the enabled control behavior.
- Tag
Args - A set of tags to assign to the enabled control.
- control
Identifier String - Arn of the control.
- target
Identifier String - Arn for Organizational unit to which the control needs to be applied
- parameters
List<Enabled
Control Parameter> - Parameters to configure the enabled control behavior.
- List<Tag>
- A set of tags to assign to the enabled control.
- control
Identifier string - Arn of the control.
- target
Identifier string - Arn for Organizational unit to which the control needs to be applied
- parameters
Enabled
Control Parameter[] - Parameters to configure the enabled control behavior.
- 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[Enabled
Control Parameter Args] - Parameters to configure the enabled control behavior.
- Sequence[Tag
Args] - A set of tags to assign to the enabled control.
- control
Identifier String - Arn of the control.
- target
Identifier String - Arn for Organizational unit to which the control needs to be applied
- parameters List<Property Map>
- Parameters to configure the enabled control behavior.
- 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
- The key of a key/value pair. It is of type
string
. - Value List<object> | string | double | object | bool
- The value of a key/value pair. It can be of type
array
,string
,number
,object
, orboolean
. [Note: The Type field that follows may show a single type such as Number, which is only one possible type.]
- Key string
- The key of a key/value pair. It is of type
string
. - Value []interface{} | string | float64 | interface{} | bool
- The value of a key/value pair. It can be of type
array
,string
,number
,object
, orboolean
. [Note: The Type field that follows may show a single type such as Number, which is only one possible type.]
- key String
- The key of a key/value pair. It is of type
string
. - value List<Object> | String | Double | Object | Boolean
- The value of a key/value pair. It can be of type
array
,string
,number
,object
, orboolean
. [Note: The Type field that follows may show a single type such as Number, which is only one possible type.]
- key string
- The key of a key/value pair. It is of type
string
. - value (string | number | any | boolean)[] | string | number | any | boolean
- The value of a key/value pair. It can be of type
array
,string
,number
,object
, orboolean
. [Note: The Type field that follows may show a single type such as Number, which is only one possible type.]
- key str
- The key of a key/value pair. It is of type
string
. - value Sequence[Union[str, float, Any, bool]] | str | float | Any | bool
- The value of a key/value pair. It can be of type
array
,string
,number
,object
, orboolean
. [Note: The Type field that follows may show a single type such as Number, which is only one possible type.]
- key String
- The key of a key/value pair. It is of type
string
. - value List<String | Number | Any | Boolean> | String | Number | Any | Boolean
- The value of a key/value pair. It can be of type
array
,string
,number
,object
, orboolean
. [Note: The Type field that follows may show a single type such as Number, which is only one possible type.]
Tag, TagArgs
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.