AWS Classic v5.41.0, May 15 23
AWS Classic v5.41.0, May 15 23
aws.macie2.ClassificationExportConfiguration
Explore with Pulumi AI
Provides a resource to manage an Amazon Macie Classification Export Configuration.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var exampleAccount = new Aws.Macie2.Account("exampleAccount");
var exampleClassificationExportConfiguration = new Aws.Macie2.ClassificationExportConfiguration("exampleClassificationExportConfiguration", new()
{
S3Destination = new Aws.Macie2.Inputs.ClassificationExportConfigurationS3DestinationArgs
{
BucketName = aws_s3_bucket.Example.Bucket,
KeyPrefix = "exampleprefix/",
KmsKeyArn = aws_kms_key.Example.Arn,
},
}, new CustomResourceOptions
{
DependsOn = new[]
{
exampleAccount,
},
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/macie2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
exampleAccount, err := macie2.NewAccount(ctx, "exampleAccount", nil)
if err != nil {
return err
}
_, err = macie2.NewClassificationExportConfiguration(ctx, "exampleClassificationExportConfiguration", &macie2.ClassificationExportConfigurationArgs{
S3Destination: &macie2.ClassificationExportConfigurationS3DestinationArgs{
BucketName: pulumi.Any(aws_s3_bucket.Example.Bucket),
KeyPrefix: pulumi.String("exampleprefix/"),
KmsKeyArn: pulumi.Any(aws_kms_key.Example.Arn),
},
}, pulumi.DependsOn([]pulumi.Resource{
exampleAccount,
}))
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.macie2.Account;
import com.pulumi.aws.macie2.ClassificationExportConfiguration;
import com.pulumi.aws.macie2.ClassificationExportConfigurationArgs;
import com.pulumi.aws.macie2.inputs.ClassificationExportConfigurationS3DestinationArgs;
import com.pulumi.resources.CustomResourceOptions;
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 exampleAccount = new Account("exampleAccount");
var exampleClassificationExportConfiguration = new ClassificationExportConfiguration("exampleClassificationExportConfiguration", ClassificationExportConfigurationArgs.builder()
.s3Destination(ClassificationExportConfigurationS3DestinationArgs.builder()
.bucketName(aws_s3_bucket.example().bucket())
.keyPrefix("exampleprefix/")
.kmsKeyArn(aws_kms_key.example().arn())
.build())
.build(), CustomResourceOptions.builder()
.dependsOn(exampleAccount)
.build());
}
}
import pulumi
import pulumi_aws as aws
example_account = aws.macie2.Account("exampleAccount")
example_classification_export_configuration = aws.macie2.ClassificationExportConfiguration("exampleClassificationExportConfiguration", s3_destination=aws.macie2.ClassificationExportConfigurationS3DestinationArgs(
bucket_name=aws_s3_bucket["example"]["bucket"],
key_prefix="exampleprefix/",
kms_key_arn=aws_kms_key["example"]["arn"],
),
opts=pulumi.ResourceOptions(depends_on=[example_account]))
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const exampleAccount = new aws.macie2.Account("exampleAccount", {});
const exampleClassificationExportConfiguration = new aws.macie2.ClassificationExportConfiguration("exampleClassificationExportConfiguration", {s3Destination: {
bucketName: aws_s3_bucket.example.bucket,
keyPrefix: "exampleprefix/",
kmsKeyArn: aws_kms_key.example.arn,
}}, {
dependsOn: [exampleAccount],
});
resources:
exampleAccount:
type: aws:macie2:Account
exampleClassificationExportConfiguration:
type: aws:macie2:ClassificationExportConfiguration
properties:
s3Destination:
bucketName: ${aws_s3_bucket.example.bucket}
keyPrefix: exampleprefix/
kmsKeyArn: ${aws_kms_key.example.arn}
options:
dependson:
- ${exampleAccount}
Create ClassificationExportConfiguration Resource
new ClassificationExportConfiguration(name: string, args?: ClassificationExportConfigurationArgs, opts?: CustomResourceOptions);
@overload
def ClassificationExportConfiguration(resource_name: str,
opts: Optional[ResourceOptions] = None,
s3_destination: Optional[ClassificationExportConfigurationS3DestinationArgs] = None)
@overload
def ClassificationExportConfiguration(resource_name: str,
args: Optional[ClassificationExportConfigurationArgs] = None,
opts: Optional[ResourceOptions] = None)
func NewClassificationExportConfiguration(ctx *Context, name string, args *ClassificationExportConfigurationArgs, opts ...ResourceOption) (*ClassificationExportConfiguration, error)
public ClassificationExportConfiguration(string name, ClassificationExportConfigurationArgs? args = null, CustomResourceOptions? opts = null)
public ClassificationExportConfiguration(String name, ClassificationExportConfigurationArgs args)
public ClassificationExportConfiguration(String name, ClassificationExportConfigurationArgs args, CustomResourceOptions options)
type: aws:macie2:ClassificationExportConfiguration
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ClassificationExportConfigurationArgs
- 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 ClassificationExportConfigurationArgs
- 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 ClassificationExportConfigurationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ClassificationExportConfigurationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ClassificationExportConfigurationArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
ClassificationExportConfiguration 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 ClassificationExportConfiguration resource accepts the following input properties:
- S3Destination
Classification
Export Configuration S3Destination Args Configuration block for a S3 Destination. Defined below
- S3Destination
Classification
Export Configuration S3Destination Args Configuration block for a S3 Destination. Defined below
- s3Destination
Classification
Export Configuration S3Destination Args Configuration block for a S3 Destination. Defined below
- s3Destination
Classification
Export Configuration S3Destination Args Configuration block for a S3 Destination. Defined below
- s3_
destination ClassificationExport Configuration S3Destination Args Configuration block for a S3 Destination. Defined below
- s3Destination Property Map
Configuration block for a S3 Destination. Defined below
Outputs
All input properties are implicitly available as output properties. Additionally, the ClassificationExportConfiguration 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.
Look up Existing ClassificationExportConfiguration Resource
Get an existing ClassificationExportConfiguration 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?: ClassificationExportConfigurationState, opts?: CustomResourceOptions): ClassificationExportConfiguration
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
s3_destination: Optional[ClassificationExportConfigurationS3DestinationArgs] = None) -> ClassificationExportConfiguration
func GetClassificationExportConfiguration(ctx *Context, name string, id IDInput, state *ClassificationExportConfigurationState, opts ...ResourceOption) (*ClassificationExportConfiguration, error)
public static ClassificationExportConfiguration Get(string name, Input<string> id, ClassificationExportConfigurationState? state, CustomResourceOptions? opts = null)
public static ClassificationExportConfiguration get(String name, Output<String> id, ClassificationExportConfigurationState 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.
- S3Destination
Classification
Export Configuration S3Destination Args Configuration block for a S3 Destination. Defined below
- S3Destination
Classification
Export Configuration S3Destination Args Configuration block for a S3 Destination. Defined below
- s3Destination
Classification
Export Configuration S3Destination Args Configuration block for a S3 Destination. Defined below
- s3Destination
Classification
Export Configuration S3Destination Args Configuration block for a S3 Destination. Defined below
- s3_
destination ClassificationExport Configuration S3Destination Args Configuration block for a S3 Destination. Defined below
- s3Destination Property Map
Configuration block for a S3 Destination. Defined below
Supporting Types
ClassificationExportConfigurationS3Destination
- Bucket
Name string The Amazon S3 bucket name in which Amazon Macie exports the data classification results.
- Kms
Key stringArn Amazon Resource Name (ARN) of the KMS key to be used to encrypt the data.
- Key
Prefix string The object key for the bucket in which Amazon Macie exports the data classification results.
- Bucket
Name string The Amazon S3 bucket name in which Amazon Macie exports the data classification results.
- Kms
Key stringArn Amazon Resource Name (ARN) of the KMS key to be used to encrypt the data.
- Key
Prefix string The object key for the bucket in which Amazon Macie exports the data classification results.
- bucket
Name String The Amazon S3 bucket name in which Amazon Macie exports the data classification results.
- kms
Key StringArn Amazon Resource Name (ARN) of the KMS key to be used to encrypt the data.
- key
Prefix String The object key for the bucket in which Amazon Macie exports the data classification results.
- bucket
Name string The Amazon S3 bucket name in which Amazon Macie exports the data classification results.
- kms
Key stringArn Amazon Resource Name (ARN) of the KMS key to be used to encrypt the data.
- key
Prefix string The object key for the bucket in which Amazon Macie exports the data classification results.
- bucket_
name str The Amazon S3 bucket name in which Amazon Macie exports the data classification results.
- kms_
key_ strarn Amazon Resource Name (ARN) of the KMS key to be used to encrypt the data.
- key_
prefix str The object key for the bucket in which Amazon Macie exports the data classification results.
- bucket
Name String The Amazon S3 bucket name in which Amazon Macie exports the data classification results.
- kms
Key StringArn Amazon Resource Name (ARN) of the KMS key to be used to encrypt the data.
- key
Prefix String The object key for the bucket in which Amazon Macie exports the data classification results.
Import
aws_macie2_classification_export_configuration
can be imported using the account ID and region, e.g.,
$ pulumi import aws:macie2/classificationExportConfiguration:ClassificationExportConfiguration example 123456789012:us-west-2
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
aws
Terraform Provider.