aws.cfg.DeliveryChannel
Explore with Pulumi AI
Provides an AWS Config Delivery Channel.
Note: Delivery Channel requires a Configuration Recorder to be present. Use of
depends_on
(as shown below) is recommended to avoid race conditions.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const b = new aws.s3.BucketV2("b", {
bucket: "example-awsconfig",
forceDestroy: true,
});
const assumeRole = aws.iam.getPolicyDocument({
statements: [{
effect: "Allow",
principals: [{
type: "Service",
identifiers: ["config.amazonaws.com"],
}],
actions: ["sts:AssumeRole"],
}],
});
const r = new aws.iam.Role("r", {
name: "awsconfig-example",
assumeRolePolicy: assumeRole.then(assumeRole => assumeRole.json),
});
const fooRecorder = new aws.cfg.Recorder("foo", {
name: "example",
roleArn: r.arn,
});
const foo = new aws.cfg.DeliveryChannel("foo", {
name: "example",
s3BucketName: b.bucket,
}, {
dependsOn: [fooRecorder],
});
const p = aws.iam.getPolicyDocumentOutput({
statements: [{
effect: "Allow",
actions: ["s3:*"],
resources: [
b.arn,
pulumi.interpolate`${b.arn}/*`,
],
}],
});
const pRolePolicy = new aws.iam.RolePolicy("p", {
name: "awsconfig-example",
role: r.id,
policy: p.apply(p => p.json),
});
import pulumi
import pulumi_aws as aws
b = aws.s3.BucketV2("b",
bucket="example-awsconfig",
force_destroy=True)
assume_role = aws.iam.get_policy_document(statements=[{
"effect": "Allow",
"principals": [{
"type": "Service",
"identifiers": ["config.amazonaws.com"],
}],
"actions": ["sts:AssumeRole"],
}])
r = aws.iam.Role("r",
name="awsconfig-example",
assume_role_policy=assume_role.json)
foo_recorder = aws.cfg.Recorder("foo",
name="example",
role_arn=r.arn)
foo = aws.cfg.DeliveryChannel("foo",
name="example",
s3_bucket_name=b.bucket,
opts = pulumi.ResourceOptions(depends_on=[foo_recorder]))
p = aws.iam.get_policy_document_output(statements=[{
"effect": "Allow",
"actions": ["s3:*"],
"resources": [
b.arn,
b.arn.apply(lambda arn: f"{arn}/*"),
],
}])
p_role_policy = aws.iam.RolePolicy("p",
name="awsconfig-example",
role=r.id,
policy=p.json)
package main
import (
"fmt"
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/cfg"
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/iam"
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/s3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
b, err := s3.NewBucketV2(ctx, "b", &s3.BucketV2Args{
Bucket: pulumi.String("example-awsconfig"),
ForceDestroy: pulumi.Bool(true),
})
if err != nil {
return err
}
assumeRole, err := iam.GetPolicyDocument(ctx, &iam.GetPolicyDocumentArgs{
Statements: []iam.GetPolicyDocumentStatement{
{
Effect: pulumi.StringRef("Allow"),
Principals: []iam.GetPolicyDocumentStatementPrincipal{
{
Type: "Service",
Identifiers: []string{
"config.amazonaws.com",
},
},
},
Actions: []string{
"sts:AssumeRole",
},
},
},
}, nil)
if err != nil {
return err
}
r, err := iam.NewRole(ctx, "r", &iam.RoleArgs{
Name: pulumi.String("awsconfig-example"),
AssumeRolePolicy: pulumi.String(assumeRole.Json),
})
if err != nil {
return err
}
fooRecorder, err := cfg.NewRecorder(ctx, "foo", &cfg.RecorderArgs{
Name: pulumi.String("example"),
RoleArn: r.Arn,
})
if err != nil {
return err
}
_, err = cfg.NewDeliveryChannel(ctx, "foo", &cfg.DeliveryChannelArgs{
Name: pulumi.String("example"),
S3BucketName: b.Bucket,
}, pulumi.DependsOn([]pulumi.Resource{
fooRecorder,
}))
if err != nil {
return err
}
p := iam.GetPolicyDocumentOutput(ctx, iam.GetPolicyDocumentOutputArgs{
Statements: iam.GetPolicyDocumentStatementArray{
&iam.GetPolicyDocumentStatementArgs{
Effect: pulumi.String("Allow"),
Actions: pulumi.StringArray{
pulumi.String("s3:*"),
},
Resources: pulumi.StringArray{
b.Arn,
b.Arn.ApplyT(func(arn string) (string, error) {
return fmt.Sprintf("%v/*", arn), nil
}).(pulumi.StringOutput),
},
},
},
}, nil)
_, err = iam.NewRolePolicy(ctx, "p", &iam.RolePolicyArgs{
Name: pulumi.String("awsconfig-example"),
Role: r.ID(),
Policy: pulumi.String(p.ApplyT(func(p iam.GetPolicyDocumentResult) (*string, error) {
return &p.Json, nil
}).(pulumi.StringPtrOutput)),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var b = new Aws.S3.BucketV2("b", new()
{
Bucket = "example-awsconfig",
ForceDestroy = true,
});
var assumeRole = Aws.Iam.GetPolicyDocument.Invoke(new()
{
Statements = new[]
{
new Aws.Iam.Inputs.GetPolicyDocumentStatementInputArgs
{
Effect = "Allow",
Principals = new[]
{
new Aws.Iam.Inputs.GetPolicyDocumentStatementPrincipalInputArgs
{
Type = "Service",
Identifiers = new[]
{
"config.amazonaws.com",
},
},
},
Actions = new[]
{
"sts:AssumeRole",
},
},
},
});
var r = new Aws.Iam.Role("r", new()
{
Name = "awsconfig-example",
AssumeRolePolicy = assumeRole.Apply(getPolicyDocumentResult => getPolicyDocumentResult.Json),
});
var fooRecorder = new Aws.Cfg.Recorder("foo", new()
{
Name = "example",
RoleArn = r.Arn,
});
var foo = new Aws.Cfg.DeliveryChannel("foo", new()
{
Name = "example",
S3BucketName = b.Bucket,
}, new CustomResourceOptions
{
DependsOn =
{
fooRecorder,
},
});
var p = Aws.Iam.GetPolicyDocument.Invoke(new()
{
Statements = new[]
{
new Aws.Iam.Inputs.GetPolicyDocumentStatementInputArgs
{
Effect = "Allow",
Actions = new[]
{
"s3:*",
},
Resources = new[]
{
b.Arn,
$"{b.Arn}/*",
},
},
},
});
var pRolePolicy = new Aws.Iam.RolePolicy("p", new()
{
Name = "awsconfig-example",
Role = r.Id,
Policy = p.Apply(getPolicyDocumentResult => getPolicyDocumentResult.Json),
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.s3.BucketV2;
import com.pulumi.aws.s3.BucketV2Args;
import com.pulumi.aws.iam.IamFunctions;
import com.pulumi.aws.iam.inputs.GetPolicyDocumentArgs;
import com.pulumi.aws.iam.Role;
import com.pulumi.aws.iam.RoleArgs;
import com.pulumi.aws.cfg.Recorder;
import com.pulumi.aws.cfg.RecorderArgs;
import com.pulumi.aws.cfg.DeliveryChannel;
import com.pulumi.aws.cfg.DeliveryChannelArgs;
import com.pulumi.aws.iam.RolePolicy;
import com.pulumi.aws.iam.RolePolicyArgs;
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 b = new BucketV2("b", BucketV2Args.builder()
.bucket("example-awsconfig")
.forceDestroy(true)
.build());
final var assumeRole = IamFunctions.getPolicyDocument(GetPolicyDocumentArgs.builder()
.statements(GetPolicyDocumentStatementArgs.builder()
.effect("Allow")
.principals(GetPolicyDocumentStatementPrincipalArgs.builder()
.type("Service")
.identifiers("config.amazonaws.com")
.build())
.actions("sts:AssumeRole")
.build())
.build());
var r = new Role("r", RoleArgs.builder()
.name("awsconfig-example")
.assumeRolePolicy(assumeRole.applyValue(getPolicyDocumentResult -> getPolicyDocumentResult.json()))
.build());
var fooRecorder = new Recorder("fooRecorder", RecorderArgs.builder()
.name("example")
.roleArn(r.arn())
.build());
var foo = new DeliveryChannel("foo", DeliveryChannelArgs.builder()
.name("example")
.s3BucketName(b.bucket())
.build(), CustomResourceOptions.builder()
.dependsOn(fooRecorder)
.build());
final var p = IamFunctions.getPolicyDocument(GetPolicyDocumentArgs.builder()
.statements(GetPolicyDocumentStatementArgs.builder()
.effect("Allow")
.actions("s3:*")
.resources(
b.arn(),
b.arn().applyValue(arn -> String.format("%s/*", arn)))
.build())
.build());
var pRolePolicy = new RolePolicy("pRolePolicy", RolePolicyArgs.builder()
.name("awsconfig-example")
.role(r.id())
.policy(p.applyValue(getPolicyDocumentResult -> getPolicyDocumentResult).applyValue(p -> p.applyValue(getPolicyDocumentResult -> getPolicyDocumentResult.json())))
.build());
}
}
resources:
foo:
type: aws:cfg:DeliveryChannel
properties:
name: example
s3BucketName: ${b.bucket}
options:
dependson:
- ${fooRecorder}
b:
type: aws:s3:BucketV2
properties:
bucket: example-awsconfig
forceDestroy: true
fooRecorder:
type: aws:cfg:Recorder
name: foo
properties:
name: example
roleArn: ${r.arn}
r:
type: aws:iam:Role
properties:
name: awsconfig-example
assumeRolePolicy: ${assumeRole.json}
pRolePolicy:
type: aws:iam:RolePolicy
name: p
properties:
name: awsconfig-example
role: ${r.id}
policy: ${p.json}
variables:
assumeRole:
fn::invoke:
Function: aws:iam:getPolicyDocument
Arguments:
statements:
- effect: Allow
principals:
- type: Service
identifiers:
- config.amazonaws.com
actions:
- sts:AssumeRole
p:
fn::invoke:
Function: aws:iam:getPolicyDocument
Arguments:
statements:
- effect: Allow
actions:
- s3:*
resources:
- ${b.arn}
- ${b.arn}/*
Create DeliveryChannel Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DeliveryChannel(name: string, args: DeliveryChannelArgs, opts?: CustomResourceOptions);
@overload
def DeliveryChannel(resource_name: str,
args: DeliveryChannelArgs,
opts: Optional[ResourceOptions] = None)
@overload
def DeliveryChannel(resource_name: str,
opts: Optional[ResourceOptions] = None,
s3_bucket_name: Optional[str] = None,
name: Optional[str] = None,
s3_key_prefix: Optional[str] = None,
s3_kms_key_arn: Optional[str] = None,
snapshot_delivery_properties: Optional[DeliveryChannelSnapshotDeliveryPropertiesArgs] = None,
sns_topic_arn: Optional[str] = None)
func NewDeliveryChannel(ctx *Context, name string, args DeliveryChannelArgs, opts ...ResourceOption) (*DeliveryChannel, error)
public DeliveryChannel(string name, DeliveryChannelArgs args, CustomResourceOptions? opts = null)
public DeliveryChannel(String name, DeliveryChannelArgs args)
public DeliveryChannel(String name, DeliveryChannelArgs args, CustomResourceOptions options)
type: aws:cfg:DeliveryChannel
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 DeliveryChannelArgs
- 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 DeliveryChannelArgs
- 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 DeliveryChannelArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DeliveryChannelArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DeliveryChannelArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var deliveryChannelResource = new Aws.Cfg.DeliveryChannel("deliveryChannelResource", new()
{
S3BucketName = "string",
Name = "string",
S3KeyPrefix = "string",
S3KmsKeyArn = "string",
SnapshotDeliveryProperties = new Aws.Cfg.Inputs.DeliveryChannelSnapshotDeliveryPropertiesArgs
{
DeliveryFrequency = "string",
},
SnsTopicArn = "string",
});
example, err := cfg.NewDeliveryChannel(ctx, "deliveryChannelResource", &cfg.DeliveryChannelArgs{
S3BucketName: pulumi.String("string"),
Name: pulumi.String("string"),
S3KeyPrefix: pulumi.String("string"),
S3KmsKeyArn: pulumi.String("string"),
SnapshotDeliveryProperties: &cfg.DeliveryChannelSnapshotDeliveryPropertiesArgs{
DeliveryFrequency: pulumi.String("string"),
},
SnsTopicArn: pulumi.String("string"),
})
var deliveryChannelResource = new DeliveryChannel("deliveryChannelResource", DeliveryChannelArgs.builder()
.s3BucketName("string")
.name("string")
.s3KeyPrefix("string")
.s3KmsKeyArn("string")
.snapshotDeliveryProperties(DeliveryChannelSnapshotDeliveryPropertiesArgs.builder()
.deliveryFrequency("string")
.build())
.snsTopicArn("string")
.build());
delivery_channel_resource = aws.cfg.DeliveryChannel("deliveryChannelResource",
s3_bucket_name="string",
name="string",
s3_key_prefix="string",
s3_kms_key_arn="string",
snapshot_delivery_properties={
"delivery_frequency": "string",
},
sns_topic_arn="string")
const deliveryChannelResource = new aws.cfg.DeliveryChannel("deliveryChannelResource", {
s3BucketName: "string",
name: "string",
s3KeyPrefix: "string",
s3KmsKeyArn: "string",
snapshotDeliveryProperties: {
deliveryFrequency: "string",
},
snsTopicArn: "string",
});
type: aws:cfg:DeliveryChannel
properties:
name: string
s3BucketName: string
s3KeyPrefix: string
s3KmsKeyArn: string
snapshotDeliveryProperties:
deliveryFrequency: string
snsTopicArn: string
DeliveryChannel Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The DeliveryChannel resource accepts the following input properties:
- S3Bucket
Name string - The name of the S3 bucket used to store the configuration history.
- Name string
- The name of the delivery channel. Defaults to
default
. Changing it recreates the resource. - S3Key
Prefix string - The prefix for the specified S3 bucket.
- S3Kms
Key stringArn - The ARN of the AWS KMS key used to encrypt objects delivered by AWS Config. Must belong to the same Region as the destination S3 bucket.
- Snapshot
Delivery DeliveryProperties Channel Snapshot Delivery Properties - Options for how AWS Config delivers configuration snapshots. See below
- Sns
Topic stringArn - The ARN of the SNS topic that AWS Config delivers notifications to.
- S3Bucket
Name string - The name of the S3 bucket used to store the configuration history.
- Name string
- The name of the delivery channel. Defaults to
default
. Changing it recreates the resource. - S3Key
Prefix string - The prefix for the specified S3 bucket.
- S3Kms
Key stringArn - The ARN of the AWS KMS key used to encrypt objects delivered by AWS Config. Must belong to the same Region as the destination S3 bucket.
- Snapshot
Delivery DeliveryProperties Channel Snapshot Delivery Properties Args - Options for how AWS Config delivers configuration snapshots. See below
- Sns
Topic stringArn - The ARN of the SNS topic that AWS Config delivers notifications to.
- s3Bucket
Name String - The name of the S3 bucket used to store the configuration history.
- name String
- The name of the delivery channel. Defaults to
default
. Changing it recreates the resource. - s3Key
Prefix String - The prefix for the specified S3 bucket.
- s3Kms
Key StringArn - The ARN of the AWS KMS key used to encrypt objects delivered by AWS Config. Must belong to the same Region as the destination S3 bucket.
- snapshot
Delivery DeliveryProperties Channel Snapshot Delivery Properties - Options for how AWS Config delivers configuration snapshots. See below
- sns
Topic StringArn - The ARN of the SNS topic that AWS Config delivers notifications to.
- s3Bucket
Name string - The name of the S3 bucket used to store the configuration history.
- name string
- The name of the delivery channel. Defaults to
default
. Changing it recreates the resource. - s3Key
Prefix string - The prefix for the specified S3 bucket.
- s3Kms
Key stringArn - The ARN of the AWS KMS key used to encrypt objects delivered by AWS Config. Must belong to the same Region as the destination S3 bucket.
- snapshot
Delivery DeliveryProperties Channel Snapshot Delivery Properties - Options for how AWS Config delivers configuration snapshots. See below
- sns
Topic stringArn - The ARN of the SNS topic that AWS Config delivers notifications to.
- s3_
bucket_ strname - The name of the S3 bucket used to store the configuration history.
- name str
- The name of the delivery channel. Defaults to
default
. Changing it recreates the resource. - s3_
key_ strprefix - The prefix for the specified S3 bucket.
- s3_
kms_ strkey_ arn - The ARN of the AWS KMS key used to encrypt objects delivered by AWS Config. Must belong to the same Region as the destination S3 bucket.
- snapshot_
delivery_ Deliveryproperties Channel Snapshot Delivery Properties Args - Options for how AWS Config delivers configuration snapshots. See below
- sns_
topic_ strarn - The ARN of the SNS topic that AWS Config delivers notifications to.
- s3Bucket
Name String - The name of the S3 bucket used to store the configuration history.
- name String
- The name of the delivery channel. Defaults to
default
. Changing it recreates the resource. - s3Key
Prefix String - The prefix for the specified S3 bucket.
- s3Kms
Key StringArn - The ARN of the AWS KMS key used to encrypt objects delivered by AWS Config. Must belong to the same Region as the destination S3 bucket.
- snapshot
Delivery Property MapProperties - Options for how AWS Config delivers configuration snapshots. See below
- sns
Topic StringArn - The ARN of the SNS topic that AWS Config delivers notifications to.
Outputs
All input properties are implicitly available as output properties. Additionally, the DeliveryChannel 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 DeliveryChannel Resource
Get an existing DeliveryChannel 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?: DeliveryChannelState, opts?: CustomResourceOptions): DeliveryChannel
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
name: Optional[str] = None,
s3_bucket_name: Optional[str] = None,
s3_key_prefix: Optional[str] = None,
s3_kms_key_arn: Optional[str] = None,
snapshot_delivery_properties: Optional[DeliveryChannelSnapshotDeliveryPropertiesArgs] = None,
sns_topic_arn: Optional[str] = None) -> DeliveryChannel
func GetDeliveryChannel(ctx *Context, name string, id IDInput, state *DeliveryChannelState, opts ...ResourceOption) (*DeliveryChannel, error)
public static DeliveryChannel Get(string name, Input<string> id, DeliveryChannelState? state, CustomResourceOptions? opts = null)
public static DeliveryChannel get(String name, Output<String> id, DeliveryChannelState 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.
- Name string
- The name of the delivery channel. Defaults to
default
. Changing it recreates the resource. - S3Bucket
Name string - The name of the S3 bucket used to store the configuration history.
- S3Key
Prefix string - The prefix for the specified S3 bucket.
- S3Kms
Key stringArn - The ARN of the AWS KMS key used to encrypt objects delivered by AWS Config. Must belong to the same Region as the destination S3 bucket.
- Snapshot
Delivery DeliveryProperties Channel Snapshot Delivery Properties - Options for how AWS Config delivers configuration snapshots. See below
- Sns
Topic stringArn - The ARN of the SNS topic that AWS Config delivers notifications to.
- Name string
- The name of the delivery channel. Defaults to
default
. Changing it recreates the resource. - S3Bucket
Name string - The name of the S3 bucket used to store the configuration history.
- S3Key
Prefix string - The prefix for the specified S3 bucket.
- S3Kms
Key stringArn - The ARN of the AWS KMS key used to encrypt objects delivered by AWS Config. Must belong to the same Region as the destination S3 bucket.
- Snapshot
Delivery DeliveryProperties Channel Snapshot Delivery Properties Args - Options for how AWS Config delivers configuration snapshots. See below
- Sns
Topic stringArn - The ARN of the SNS topic that AWS Config delivers notifications to.
- name String
- The name of the delivery channel. Defaults to
default
. Changing it recreates the resource. - s3Bucket
Name String - The name of the S3 bucket used to store the configuration history.
- s3Key
Prefix String - The prefix for the specified S3 bucket.
- s3Kms
Key StringArn - The ARN of the AWS KMS key used to encrypt objects delivered by AWS Config. Must belong to the same Region as the destination S3 bucket.
- snapshot
Delivery DeliveryProperties Channel Snapshot Delivery Properties - Options for how AWS Config delivers configuration snapshots. See below
- sns
Topic StringArn - The ARN of the SNS topic that AWS Config delivers notifications to.
- name string
- The name of the delivery channel. Defaults to
default
. Changing it recreates the resource. - s3Bucket
Name string - The name of the S3 bucket used to store the configuration history.
- s3Key
Prefix string - The prefix for the specified S3 bucket.
- s3Kms
Key stringArn - The ARN of the AWS KMS key used to encrypt objects delivered by AWS Config. Must belong to the same Region as the destination S3 bucket.
- snapshot
Delivery DeliveryProperties Channel Snapshot Delivery Properties - Options for how AWS Config delivers configuration snapshots. See below
- sns
Topic stringArn - The ARN of the SNS topic that AWS Config delivers notifications to.
- name str
- The name of the delivery channel. Defaults to
default
. Changing it recreates the resource. - s3_
bucket_ strname - The name of the S3 bucket used to store the configuration history.
- s3_
key_ strprefix - The prefix for the specified S3 bucket.
- s3_
kms_ strkey_ arn - The ARN of the AWS KMS key used to encrypt objects delivered by AWS Config. Must belong to the same Region as the destination S3 bucket.
- snapshot_
delivery_ Deliveryproperties Channel Snapshot Delivery Properties Args - Options for how AWS Config delivers configuration snapshots. See below
- sns_
topic_ strarn - The ARN of the SNS topic that AWS Config delivers notifications to.
- name String
- The name of the delivery channel. Defaults to
default
. Changing it recreates the resource. - s3Bucket
Name String - The name of the S3 bucket used to store the configuration history.
- s3Key
Prefix String - The prefix for the specified S3 bucket.
- s3Kms
Key StringArn - The ARN of the AWS KMS key used to encrypt objects delivered by AWS Config. Must belong to the same Region as the destination S3 bucket.
- snapshot
Delivery Property MapProperties - Options for how AWS Config delivers configuration snapshots. See below
- sns
Topic StringArn - The ARN of the SNS topic that AWS Config delivers notifications to.
Supporting Types
DeliveryChannelSnapshotDeliveryProperties, DeliveryChannelSnapshotDeliveryPropertiesArgs
- Delivery
Frequency string - The frequency with which AWS Config recurringly delivers configuration snapshotsE.g.,
One_Hour
orThree_Hours
. Valid values are listed here.
- Delivery
Frequency string - The frequency with which AWS Config recurringly delivers configuration snapshotsE.g.,
One_Hour
orThree_Hours
. Valid values are listed here.
- delivery
Frequency String - The frequency with which AWS Config recurringly delivers configuration snapshotsE.g.,
One_Hour
orThree_Hours
. Valid values are listed here.
- delivery
Frequency string - The frequency with which AWS Config recurringly delivers configuration snapshotsE.g.,
One_Hour
orThree_Hours
. Valid values are listed here.
- delivery_
frequency str - The frequency with which AWS Config recurringly delivers configuration snapshotsE.g.,
One_Hour
orThree_Hours
. Valid values are listed here.
- delivery
Frequency String - The frequency with which AWS Config recurringly delivers configuration snapshotsE.g.,
One_Hour
orThree_Hours
. Valid values are listed here.
Import
Using pulumi import
, import Delivery Channel using the name. For example:
$ pulumi import aws:cfg/deliveryChannel:DeliveryChannel foo example
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.