1. Packages
  2. AWS Classic
  3. API Docs
  4. auditmanager
  5. Framework

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.2.1 published on Friday, Sep 22, 2023 by Pulumi

aws.auditmanager.Framework

Explore with Pulumi AI

aws logo

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.2.1 published on Friday, Sep 22, 2023 by Pulumi

    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:

    ComplianceType string

    Compliance type that the new custom framework supports, such as CIS or HIPAA.

    ControlSets List<Pulumi.Aws.Auditmanager.Inputs.FrameworkControlSet>

    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.

    Tags 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.

    ComplianceType string

    Compliance type that the new custom framework supports, such as CIS or HIPAA.

    ControlSets []FrameworkControlSetArgs

    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.

    Tags 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.

    complianceType String

    Compliance type that the new custom framework supports, such as CIS or HIPAA.

    controlSets List<FrameworkControlSet>

    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.

    tags 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.

    complianceType string

    Compliance type that the new custom framework supports, such as CIS or HIPAA.

    controlSets FrameworkControlSet[]

    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.

    tags {[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 or HIPAA.

    control_sets Sequence[FrameworkControlSetArgs]

    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.

    tags 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.

    complianceType String

    Compliance type that the new custom framework supports, such as CIS or HIPAA.

    controlSets 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.

    tags 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.
    FrameworkType string

    Framework type, such as a custom framework or a standard framework.

    Id string

    The provider-assigned unique ID for this managed resource.

    TagsAll Dictionary<string, string>

    Deprecated:

    Please use tags instead.

    Arn string

    Amazon Resource Name (ARN) of the framework.

    • control_sets[*].id - Unique identifier for the framework control set.
    FrameworkType string

    Framework type, such as a custom framework or a standard framework.

    Id string

    The provider-assigned unique ID for this managed resource.

    TagsAll map[string]string

    Deprecated:

    Please use tags instead.

    arn String

    Amazon Resource Name (ARN) of the framework.

    • control_sets[*].id - Unique identifier for the framework control set.
    frameworkType String

    Framework type, such as a custom framework or a standard framework.

    id String

    The provider-assigned unique ID for this managed resource.

    tagsAll Map<String,String>

    Deprecated:

    Please use tags instead.

    arn string

    Amazon Resource Name (ARN) of the framework.

    • control_sets[*].id - Unique identifier for the framework control set.
    frameworkType string

    Framework type, such as a custom framework or a standard framework.

    id string

    The provider-assigned unique ID for this managed resource.

    tagsAll {[key: string]: string}

    Deprecated:

    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.

    tags_all Mapping[str, str]

    Deprecated:

    Please use tags instead.

    arn String

    Amazon Resource Name (ARN) of the framework.

    • control_sets[*].id - Unique identifier for the framework control set.
    frameworkType String

    Framework type, such as a custom framework or a standard framework.

    id String

    The provider-assigned unique ID for this managed resource.

    tagsAll Map<String>

    Deprecated:

    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.
    The following state arguments are supported:
    Arn string

    Amazon Resource Name (ARN) of the framework.

    • control_sets[*].id - Unique identifier for the framework control set.
    ComplianceType string

    Compliance type that the new custom framework supports, such as CIS or HIPAA.

    ControlSets List<Pulumi.Aws.Auditmanager.Inputs.FrameworkControlSet>

    Control sets that are associated with the framework. See control_sets below.

    The following arguments are optional:

    Description string

    Description of the framework.

    FrameworkType string

    Framework type, such as a custom framework or a standard framework.

    Name string

    Name of the framework.

    Tags 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.

    TagsAll Dictionary<string, string>

    Deprecated:

    Please use tags instead.

    Arn string

    Amazon Resource Name (ARN) of the framework.

    • control_sets[*].id - Unique identifier for the framework control set.
    ComplianceType string

    Compliance type that the new custom framework supports, such as CIS or HIPAA.

    ControlSets []FrameworkControlSetArgs

    Control sets that are associated with the framework. See control_sets below.

    The following arguments are optional:

    Description string

    Description of the framework.

    FrameworkType string

    Framework type, such as a custom framework or a standard framework.

    Name string

    Name of the framework.

    Tags 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.

    TagsAll map[string]string

    Deprecated:

    Please use tags instead.

    arn String

    Amazon Resource Name (ARN) of the framework.

    • control_sets[*].id - Unique identifier for the framework control set.
    complianceType String

    Compliance type that the new custom framework supports, such as CIS or HIPAA.

    controlSets List<FrameworkControlSet>

    Control sets that are associated with the framework. See control_sets below.

    The following arguments are optional:

    description String

    Description of the framework.

    frameworkType String

    Framework type, such as a custom framework or a standard framework.

    name String

    Name of the framework.

    tags 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.

    tagsAll Map<String,String>

    Deprecated:

    Please use tags instead.

    arn string

    Amazon Resource Name (ARN) of the framework.

    • control_sets[*].id - Unique identifier for the framework control set.
    complianceType string

    Compliance type that the new custom framework supports, such as CIS or HIPAA.

    controlSets FrameworkControlSet[]

    Control sets that are associated with the framework. See control_sets below.

    The following arguments are optional:

    description string

    Description of the framework.

    frameworkType string

    Framework type, such as a custom framework or a standard framework.

    name string

    Name of the framework.

    tags {[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.

    tagsAll {[key: string]: string}

    Deprecated:

    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 or HIPAA.

    control_sets Sequence[FrameworkControlSetArgs]

    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.

    tags 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.

    tags_all Mapping[str, str]

    Deprecated:

    Please use tags instead.

    arn String

    Amazon Resource Name (ARN) of the framework.

    • control_sets[*].id - Unique identifier for the framework control set.
    complianceType String

    Compliance type that the new custom framework supports, such as CIS or HIPAA.

    controlSets 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.

    frameworkType String

    Framework type, such as a custom framework or a standard framework.

    name String

    Name of the framework.

    tags 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.

    tagsAll Map<String>

    Deprecated:

    Please use tags instead.

    Supporting Types

    FrameworkControlSet, FrameworkControlSetArgs

    Name string

    Name of the control set.

    Controls List<Pulumi.Aws.Auditmanager.Inputs.FrameworkControlSetControl>

    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 []FrameworkControlSetControl

    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<FrameworkControlSetControl>

    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 FrameworkControlSetControl[]

    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[FrameworkControlSetControl]

    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.

    aws logo

    Try AWS Native preview for resources not in the classic version.

    AWS Classic v6.2.1 published on Friday, Sep 22, 2023 by Pulumi