We recommend new projects start with resources from the AWS provider.
aws-native.configuration.ConformancePack
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
A conformance pack is a collection of AWS Config rules and remediation actions that can be easily deployed as a single entity in an account and a region or across an entire AWS Organization.
Example Usage
Example
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AwsNative = Pulumi.AwsNative;
return await Deployment.RunAsync(() =>
{
var conformancePack = new AwsNative.Configuration.ConformancePack("conformancePack", new()
{
ConformancePackName = "ConformancePackName",
DeliveryS3Bucket = "DeliveryS3Bucket",
TemplateS3Uri = "s3://bucketname/prefix",
});
});
package main
import (
"github.com/pulumi/pulumi-aws-native/sdk/go/aws/configuration"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := configuration.NewConformancePack(ctx, "conformancePack", &configuration.ConformancePackArgs{
ConformancePackName: pulumi.String("ConformancePackName"),
DeliveryS3Bucket: pulumi.String("DeliveryS3Bucket"),
TemplateS3Uri: pulumi.String("s3://bucketname/prefix"),
})
if err != nil {
return err
}
return nil
})
}
Coming soon!
import pulumi
import pulumi_aws_native as aws_native
conformance_pack = aws_native.configuration.ConformancePack("conformancePack",
conformance_pack_name="ConformancePackName",
delivery_s3_bucket="DeliveryS3Bucket",
template_s3_uri="s3://bucketname/prefix")
import * as pulumi from "@pulumi/pulumi";
import * as aws_native from "@pulumi/aws-native";
const conformancePack = new aws_native.configuration.ConformancePack("conformancePack", {
conformancePackName: "ConformancePackName",
deliveryS3Bucket: "DeliveryS3Bucket",
templateS3Uri: "s3://bucketname/prefix",
});
Coming soon!
Example
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AwsNative = Pulumi.AwsNative;
return await Deployment.RunAsync(() =>
{
var cloudFormationCanaryPack = new AwsNative.Configuration.ConformancePack("cloudFormationCanaryPack", new()
{
ConformancePackName = "ConformancePackName",
DeliveryS3Bucket = "DeliveryS3Bucket",
TemplateS3Uri = "s3://bucketname/prefix",
});
});
package main
import (
"github.com/pulumi/pulumi-aws-native/sdk/go/aws/configuration"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := configuration.NewConformancePack(ctx, "cloudFormationCanaryPack", &configuration.ConformancePackArgs{
ConformancePackName: pulumi.String("ConformancePackName"),
DeliveryS3Bucket: pulumi.String("DeliveryS3Bucket"),
TemplateS3Uri: pulumi.String("s3://bucketname/prefix"),
})
if err != nil {
return err
}
return nil
})
}
Coming soon!
import pulumi
import pulumi_aws_native as aws_native
cloud_formation_canary_pack = aws_native.configuration.ConformancePack("cloudFormationCanaryPack",
conformance_pack_name="ConformancePackName",
delivery_s3_bucket="DeliveryS3Bucket",
template_s3_uri="s3://bucketname/prefix")
import * as pulumi from "@pulumi/pulumi";
import * as aws_native from "@pulumi/aws-native";
const cloudFormationCanaryPack = new aws_native.configuration.ConformancePack("cloudFormationCanaryPack", {
conformancePackName: "ConformancePackName",
deliveryS3Bucket: "DeliveryS3Bucket",
templateS3Uri: "s3://bucketname/prefix",
});
Coming soon!
Create ConformancePack Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ConformancePack(name: string, args?: ConformancePackArgs, opts?: CustomResourceOptions);
@overload
def ConformancePack(resource_name: str,
args: Optional[ConformancePackArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def ConformancePack(resource_name: str,
opts: Optional[ResourceOptions] = None,
conformance_pack_input_parameters: Optional[Sequence[ConformancePackInputParameterArgs]] = None,
conformance_pack_name: Optional[str] = None,
delivery_s3_bucket: Optional[str] = None,
delivery_s3_key_prefix: Optional[str] = None,
template_body: Optional[str] = None,
template_s3_uri: Optional[str] = None,
template_ssm_document_details: Optional[TemplateSsmDocumentDetailsPropertiesArgs] = None)
func NewConformancePack(ctx *Context, name string, args *ConformancePackArgs, opts ...ResourceOption) (*ConformancePack, error)
public ConformancePack(string name, ConformancePackArgs? args = null, CustomResourceOptions? opts = null)
public ConformancePack(String name, ConformancePackArgs args)
public ConformancePack(String name, ConformancePackArgs args, CustomResourceOptions options)
type: aws-native:configuration:ConformancePack
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 ConformancePackArgs
- 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 ConformancePackArgs
- 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 ConformancePackArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ConformancePackArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ConformancePackArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
ConformancePack 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 ConformancePack resource accepts the following input properties:
- Conformance
Pack List<Pulumi.Input Parameters Aws Native. Configuration. Inputs. Conformance Pack Input Parameter> - A list of ConformancePackInputParameter objects.
- Conformance
Pack stringName - Name of the conformance pack which will be assigned as the unique identifier.
- Delivery
S3Bucket string - AWS Config stores intermediate files while processing conformance pack template.
- Delivery
S3Key stringPrefix - The prefix for delivery S3 bucket.
- Template
Body string - A string containing full conformance pack template body. You can only specify one of the template body or template S3Uri fields.
- Template
S3Uri string - Location of file containing the template body which points to the conformance pack template that is located in an Amazon S3 bucket. You can only specify one of the template body or template S3Uri fields.
- Template
Ssm Pulumi.Document Details Aws Native. Configuration. Inputs. Template Ssm Document Details Properties - The TemplateSSMDocumentDetails object contains the name of the SSM document and the version of the SSM document.
- Conformance
Pack []ConformanceInput Parameters Pack Input Parameter Args - A list of ConformancePackInputParameter objects.
- Conformance
Pack stringName - Name of the conformance pack which will be assigned as the unique identifier.
- Delivery
S3Bucket string - AWS Config stores intermediate files while processing conformance pack template.
- Delivery
S3Key stringPrefix - The prefix for delivery S3 bucket.
- Template
Body string - A string containing full conformance pack template body. You can only specify one of the template body or template S3Uri fields.
- Template
S3Uri string - Location of file containing the template body which points to the conformance pack template that is located in an Amazon S3 bucket. You can only specify one of the template body or template S3Uri fields.
- Template
Ssm TemplateDocument Details Ssm Document Details Properties Args - The TemplateSSMDocumentDetails object contains the name of the SSM document and the version of the SSM document.
- conformance
Pack List<ConformanceInput Parameters Pack Input Parameter> - A list of ConformancePackInputParameter objects.
- conformance
Pack StringName - Name of the conformance pack which will be assigned as the unique identifier.
- delivery
S3Bucket String - AWS Config stores intermediate files while processing conformance pack template.
- delivery
S3Key StringPrefix - The prefix for delivery S3 bucket.
- template
Body String - A string containing full conformance pack template body. You can only specify one of the template body or template S3Uri fields.
- template
S3Uri String - Location of file containing the template body which points to the conformance pack template that is located in an Amazon S3 bucket. You can only specify one of the template body or template S3Uri fields.
- template
Ssm TemplateDocument Details Ssm Document Details Properties - The TemplateSSMDocumentDetails object contains the name of the SSM document and the version of the SSM document.
- conformance
Pack ConformanceInput Parameters Pack Input Parameter[] - A list of ConformancePackInputParameter objects.
- conformance
Pack stringName - Name of the conformance pack which will be assigned as the unique identifier.
- delivery
S3Bucket string - AWS Config stores intermediate files while processing conformance pack template.
- delivery
S3Key stringPrefix - The prefix for delivery S3 bucket.
- template
Body string - A string containing full conformance pack template body. You can only specify one of the template body or template S3Uri fields.
- template
S3Uri string - Location of file containing the template body which points to the conformance pack template that is located in an Amazon S3 bucket. You can only specify one of the template body or template S3Uri fields.
- template
Ssm TemplateDocument Details Ssm Document Details Properties - The TemplateSSMDocumentDetails object contains the name of the SSM document and the version of the SSM document.
- conformance_
pack_ Sequence[Conformanceinput_ parameters Pack Input Parameter Args] - A list of ConformancePackInputParameter objects.
- conformance_
pack_ strname - Name of the conformance pack which will be assigned as the unique identifier.
- delivery_
s3_ strbucket - AWS Config stores intermediate files while processing conformance pack template.
- delivery_
s3_ strkey_ prefix - The prefix for delivery S3 bucket.
- template_
body str - A string containing full conformance pack template body. You can only specify one of the template body or template S3Uri fields.
- template_
s3_ struri - Location of file containing the template body which points to the conformance pack template that is located in an Amazon S3 bucket. You can only specify one of the template body or template S3Uri fields.
- template_
ssm_ Templatedocument_ details Ssm Document Details Properties Args - The TemplateSSMDocumentDetails object contains the name of the SSM document and the version of the SSM document.
- conformance
Pack List<Property Map>Input Parameters - A list of ConformancePackInputParameter objects.
- conformance
Pack StringName - Name of the conformance pack which will be assigned as the unique identifier.
- delivery
S3Bucket String - AWS Config stores intermediate files while processing conformance pack template.
- delivery
S3Key StringPrefix - The prefix for delivery S3 bucket.
- template
Body String - A string containing full conformance pack template body. You can only specify one of the template body or template S3Uri fields.
- template
S3Uri String - Location of file containing the template body which points to the conformance pack template that is located in an Amazon S3 bucket. You can only specify one of the template body or template S3Uri fields.
- template
Ssm Property MapDocument Details - The TemplateSSMDocumentDetails object contains the name of the SSM document and the version of the SSM document.
Outputs
All input properties are implicitly available as output properties. Additionally, the ConformancePack 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
ConformancePackInputParameter, ConformancePackInputParameterArgs
- Parameter
Name string - One part of a key-value pair.
- Parameter
Value string - Another part of the key-value pair.
- Parameter
Name string - One part of a key-value pair.
- Parameter
Value string - Another part of the key-value pair.
- parameter
Name String - One part of a key-value pair.
- parameter
Value String - Another part of the key-value pair.
- parameter
Name string - One part of a key-value pair.
- parameter
Value string - Another part of the key-value pair.
- parameter_
name str - One part of a key-value pair.
- parameter_
value str - Another part of the key-value pair.
- parameter
Name String - One part of a key-value pair.
- parameter
Value String - Another part of the key-value pair.
TemplateSsmDocumentDetailsProperties, TemplateSsmDocumentDetailsPropertiesArgs
- Document
Name string - The name or Amazon Resource Name (ARN) of the SSM document to use to create a conformance pack. If you use the document name, AWS Config checks only your account and AWS Region for the SSM document.
- Document
Version string The version of the SSM document to use to create a conformance pack. By default, AWS Config uses the latest version.
This field is optional.
- Document
Name string - The name or Amazon Resource Name (ARN) of the SSM document to use to create a conformance pack. If you use the document name, AWS Config checks only your account and AWS Region for the SSM document.
- Document
Version string The version of the SSM document to use to create a conformance pack. By default, AWS Config uses the latest version.
This field is optional.
- document
Name String - The name or Amazon Resource Name (ARN) of the SSM document to use to create a conformance pack. If you use the document name, AWS Config checks only your account and AWS Region for the SSM document.
- document
Version String The version of the SSM document to use to create a conformance pack. By default, AWS Config uses the latest version.
This field is optional.
- document
Name string - The name or Amazon Resource Name (ARN) of the SSM document to use to create a conformance pack. If you use the document name, AWS Config checks only your account and AWS Region for the SSM document.
- document
Version string The version of the SSM document to use to create a conformance pack. By default, AWS Config uses the latest version.
This field is optional.
- document_
name str - The name or Amazon Resource Name (ARN) of the SSM document to use to create a conformance pack. If you use the document name, AWS Config checks only your account and AWS Region for the SSM document.
- document_
version str The version of the SSM document to use to create a conformance pack. By default, AWS Config uses the latest version.
This field is optional.
- document
Name String - The name or Amazon Resource Name (ARN) of the SSM document to use to create a conformance pack. If you use the document name, AWS Config checks only your account and AWS Region for the SSM document.
- document
Version String The version of the SSM document to use to create a conformance pack. By default, AWS Config uses the latest version.
This field is optional.
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.