Try AWS Native preview for resources not in the classic version.
aws.auditmanager.Framework
Explore with Pulumi AI
Try AWS Native preview for resources not in the classic version.
Resource for managing an AWS Audit Manager Framework.
Example Usage
Basic Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var test = new Aws.Auditmanager.Framework("test", new()
{
ControlSets = new[]
{
new Aws.Auditmanager.Inputs.FrameworkControlSetArgs
{
Name = "example",
Controls = new[]
{
new Aws.Auditmanager.Inputs.FrameworkControlSetControlArgs
{
Id = aws_auditmanager_control.Test.Id,
},
},
},
},
});
});
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.NewFramework(ctx, "test", &auditmanager.FrameworkArgs{
ControlSets: auditmanager.FrameworkControlSetArray{
&auditmanager.FrameworkControlSetArgs{
Name: pulumi.String("example"),
Controls: auditmanager.FrameworkControlSetControlArray{
&auditmanager.FrameworkControlSetControlArgs{
Id: pulumi.Any(aws_auditmanager_control.Test.Id),
},
},
},
},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.auditmanager.Framework;
import com.pulumi.aws.auditmanager.FrameworkArgs;
import com.pulumi.aws.auditmanager.inputs.FrameworkControlSetArgs;
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 test = new Framework("test", FrameworkArgs.builder()
.controlSets(FrameworkControlSetArgs.builder()
.name("example")
.controls(FrameworkControlSetControlArgs.builder()
.id(aws_auditmanager_control.test().id())
.build())
.build())
.build());
}
}
import pulumi
import pulumi_aws as aws
test = aws.auditmanager.Framework("test", control_sets=[aws.auditmanager.FrameworkControlSetArgs(
name="example",
controls=[aws.auditmanager.FrameworkControlSetControlArgs(
id=aws_auditmanager_control["test"]["id"],
)],
)])
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const test = new aws.auditmanager.Framework("test", {controlSets: [{
name: "example",
controls: [{
id: aws_auditmanager_control.test.id,
}],
}]});
resources:
test:
type: aws:auditmanager:Framework
properties:
controlSets:
- name: example
controls:
- id: ${aws_auditmanager_control.test.id}
Create Framework Resource
new Framework(name: string, args?: FrameworkArgs, opts?: CustomResourceOptions);
@overload
def Framework(resource_name: str,
opts: Optional[ResourceOptions] = None,
compliance_type: Optional[str] = None,
control_sets: Optional[Sequence[FrameworkControlSetArgs]] = None,
description: Optional[str] = None,
name: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None)
@overload
def Framework(resource_name: str,
args: Optional[FrameworkArgs] = None,
opts: Optional[ResourceOptions] = None)
func NewFramework(ctx *Context, name string, args *FrameworkArgs, opts ...ResourceOption) (*Framework, error)
public Framework(string name, FrameworkArgs? args = null, CustomResourceOptions? opts = null)
public Framework(String name, FrameworkArgs args)
public Framework(String name, FrameworkArgs args, CustomResourceOptions options)
type: aws:auditmanager:Framework
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args FrameworkArgs
- 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 FrameworkArgs
- 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 FrameworkArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args FrameworkArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args FrameworkArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Framework 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 Framework resource accepts the following input properties:
- Compliance
Type string Compliance type that the new custom framework supports, such as
CIS
orHIPAA
.- Control
Sets List<Pulumi.Aws. Auditmanager. Inputs. Framework Control Set> Control sets that are associated with the framework. See
control_sets
below.The following arguments are optional:
- Description string
Description of the framework.
- Name string
Name of the framework.
- Dictionary<string, string>
A map of tags to assign to the framework. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- Compliance
Type string Compliance type that the new custom framework supports, such as
CIS
orHIPAA
.- Control
Sets []FrameworkControl Set Args Control sets that are associated with the framework. See
control_sets
below.The following arguments are optional:
- Description string
Description of the framework.
- Name string
Name of the framework.
- map[string]string
A map of tags to assign to the framework. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- compliance
Type String Compliance type that the new custom framework supports, such as
CIS
orHIPAA
.- control
Sets List<FrameworkControl Set> Control sets that are associated with the framework. See
control_sets
below.The following arguments are optional:
- description String
Description of the framework.
- name String
Name of the framework.
- Map<String,String>
A map of tags to assign to the framework. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- compliance
Type string Compliance type that the new custom framework supports, such as
CIS
orHIPAA
.- control
Sets FrameworkControl Set[] Control sets that are associated with the framework. See
control_sets
below.The following arguments are optional:
- description string
Description of the framework.
- name string
Name of the framework.
- {[key: string]: string}
A map of tags to assign to the framework. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- compliance_
type str Compliance type that the new custom framework supports, such as
CIS
orHIPAA
.- control_
sets Sequence[FrameworkControl Set Args] Control sets that are associated with the framework. See
control_sets
below.The following arguments are optional:
- description str
Description of the framework.
- name str
Name of the framework.
- Mapping[str, str]
A map of tags to assign to the framework. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- compliance
Type String Compliance type that the new custom framework supports, such as
CIS
orHIPAA
.- control
Sets List<Property Map> Control sets that are associated with the framework. See
control_sets
below.The following arguments are optional:
- description String
Description of the framework.
- name String
Name of the framework.
- Map<String>
A map of tags to assign to the framework. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
Outputs
All input properties are implicitly available as output properties. Additionally, the Framework resource produces the following output properties:
- Arn string
Amazon Resource Name (ARN) of the framework.
control_sets[*].id
- Unique identifier for the framework control set.
- Framework
Type string Framework type, such as a custom framework or a standard framework.
- Id string
The provider-assigned unique ID for this managed resource.
- Dictionary<string, string>
Please use
tags
instead.
- Arn string
Amazon Resource Name (ARN) of the framework.
control_sets[*].id
- Unique identifier for the framework control set.
- Framework
Type string Framework type, such as a custom framework or a standard framework.
- Id string
The provider-assigned unique ID for this managed resource.
- map[string]string
Please use
tags
instead.
- arn String
Amazon Resource Name (ARN) of the framework.
control_sets[*].id
- Unique identifier for the framework control set.
- framework
Type String Framework type, such as a custom framework or a standard framework.
- id String
The provider-assigned unique ID for this managed resource.
- Map<String,String>
Please use
tags
instead.
- arn string
Amazon Resource Name (ARN) of the framework.
control_sets[*].id
- Unique identifier for the framework control set.
- framework
Type string Framework type, such as a custom framework or a standard framework.
- id string
The provider-assigned unique ID for this managed resource.
- {[key: string]: string}
Please use
tags
instead.
- arn str
Amazon Resource Name (ARN) of the framework.
control_sets[*].id
- Unique identifier for the framework control set.
- framework_
type str Framework type, such as a custom framework or a standard framework.
- id str
The provider-assigned unique ID for this managed resource.
- Mapping[str, str]
Please use
tags
instead.
- arn String
Amazon Resource Name (ARN) of the framework.
control_sets[*].id
- Unique identifier for the framework control set.
- framework
Type String Framework type, such as a custom framework or a standard framework.
- id String
The provider-assigned unique ID for this managed resource.
- Map<String>
Please use
tags
instead.
Look up Existing Framework Resource
Get an existing Framework 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?: FrameworkState, opts?: CustomResourceOptions): Framework
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
arn: Optional[str] = None,
compliance_type: Optional[str] = None,
control_sets: Optional[Sequence[FrameworkControlSetArgs]] = None,
description: Optional[str] = None,
framework_type: Optional[str] = None,
name: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
tags_all: Optional[Mapping[str, str]] = None) -> Framework
func GetFramework(ctx *Context, name string, id IDInput, state *FrameworkState, opts ...ResourceOption) (*Framework, error)
public static Framework Get(string name, Input<string> id, FrameworkState? state, CustomResourceOptions? opts = null)
public static Framework get(String name, Output<String> id, FrameworkState 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.
- Arn string
Amazon Resource Name (ARN) of the framework.
control_sets[*].id
- Unique identifier for the framework control set.
- Compliance
Type string Compliance type that the new custom framework supports, such as
CIS
orHIPAA
.- Control
Sets List<Pulumi.Aws. Auditmanager. Inputs. Framework Control Set> Control sets that are associated with the framework. See
control_sets
below.The following arguments are optional:
- Description string
Description of the framework.
- Framework
Type string Framework type, such as a custom framework or a standard framework.
- Name string
Name of the framework.
- Dictionary<string, string>
A map of tags to assign to the framework. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.- Dictionary<string, string>
Please use
tags
instead.
- Arn string
Amazon Resource Name (ARN) of the framework.
control_sets[*].id
- Unique identifier for the framework control set.
- Compliance
Type string Compliance type that the new custom framework supports, such as
CIS
orHIPAA
.- Control
Sets []FrameworkControl Set Args Control sets that are associated with the framework. See
control_sets
below.The following arguments are optional:
- Description string
Description of the framework.
- Framework
Type string Framework type, such as a custom framework or a standard framework.
- Name string
Name of the framework.
- map[string]string
A map of tags to assign to the framework. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.- map[string]string
Please use
tags
instead.
- arn String
Amazon Resource Name (ARN) of the framework.
control_sets[*].id
- Unique identifier for the framework control set.
- compliance
Type String Compliance type that the new custom framework supports, such as
CIS
orHIPAA
.- control
Sets List<FrameworkControl Set> Control sets that are associated with the framework. See
control_sets
below.The following arguments are optional:
- description String
Description of the framework.
- framework
Type String Framework type, such as a custom framework or a standard framework.
- name String
Name of the framework.
- Map<String,String>
A map of tags to assign to the framework. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.- Map<String,String>
Please use
tags
instead.
- arn string
Amazon Resource Name (ARN) of the framework.
control_sets[*].id
- Unique identifier for the framework control set.
- compliance
Type string Compliance type that the new custom framework supports, such as
CIS
orHIPAA
.- control
Sets FrameworkControl Set[] Control sets that are associated with the framework. See
control_sets
below.The following arguments are optional:
- description string
Description of the framework.
- framework
Type string Framework type, such as a custom framework or a standard framework.
- name string
Name of the framework.
- {[key: string]: string}
A map of tags to assign to the framework. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.- {[key: string]: string}
Please use
tags
instead.
- arn str
Amazon Resource Name (ARN) of the framework.
control_sets[*].id
- Unique identifier for the framework control set.
- compliance_
type str Compliance type that the new custom framework supports, such as
CIS
orHIPAA
.- control_
sets Sequence[FrameworkControl Set Args] Control sets that are associated with the framework. See
control_sets
below.The following arguments are optional:
- description str
Description of the framework.
- framework_
type str Framework type, such as a custom framework or a standard framework.
- name str
Name of the framework.
- Mapping[str, str]
A map of tags to assign to the framework. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.- Mapping[str, str]
Please use
tags
instead.
- arn String
Amazon Resource Name (ARN) of the framework.
control_sets[*].id
- Unique identifier for the framework control set.
- compliance
Type String Compliance type that the new custom framework supports, such as
CIS
orHIPAA
.- control
Sets List<Property Map> Control sets that are associated with the framework. See
control_sets
below.The following arguments are optional:
- description String
Description of the framework.
- framework
Type String Framework type, such as a custom framework or a standard framework.
- name String
Name of the framework.
- Map<String>
A map of tags to assign to the framework. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.- Map<String>
Please use
tags
instead.
Supporting Types
FrameworkControlSet, FrameworkControlSetArgs
- Name string
Name of the control set.
- Controls
List<Pulumi.
Aws. Auditmanager. Inputs. Framework Control Set Control> List of controls within the control set. See
controls
below.- Id string
Unique identifier of the control.
- Name string
Name of the control set.
- Controls
[]Framework
Control Set Control List of controls within the control set. See
controls
below.- Id string
Unique identifier of the control.
- name String
Name of the control set.
- controls
List<Framework
Control Set Control> List of controls within the control set. See
controls
below.- id String
Unique identifier of the control.
- name string
Name of the control set.
- controls
Framework
Control Set Control[] List of controls within the control set. See
controls
below.- id string
Unique identifier of the control.
- name str
Name of the control set.
- controls
Sequence[Framework
Control Set Control] List of controls within the control set. See
controls
below.- id str
Unique identifier of the control.
- name String
Name of the control set.
- controls List<Property Map>
List of controls within the control set. See
controls
below.- id String
Unique identifier of the control.
FrameworkControlSetControl, FrameworkControlSetControlArgs
- Id string
Unique identifier of the control.
- Id string
Unique identifier of the control.
- id String
Unique identifier of the control.
- id string
Unique identifier of the control.
- id str
Unique identifier of the control.
- id String
Unique identifier of the control.
Import
Using pulumi import
, import Audit Manager Framework using the framework id
. For example:
$ pulumi import aws:auditmanager/framework:Framework example abc123-de45
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.