Show / Hide Table of Contents

Class Recorder

Provides an AWS Config Configuration Recorder. Please note that this resource does not start the created recorder automatically.

Note: Starting the Configuration Recorder requires a delivery channel (while delivery channel creation requires Configuration Recorder). This is why aws.cfg.RecorderStatus is a separate resource.

Example Usage

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
public MyStack()
{
    var role = new Aws.Iam.Role("role", new Aws.Iam.RoleArgs
    {
        AssumeRolePolicy = @"{
""Version"": ""2012-10-17"",
""Statement"": [
{
  ""Action"": ""sts:AssumeRole"",
  ""Principal"": {
    ""Service"": ""config.amazonaws.com""
  },
  ""Effect"": ""Allow"",
  ""Sid"": """"
}
]
}

",
    });
    var foo = new Aws.Cfg.Recorder("foo", new Aws.Cfg.RecorderArgs
    {
        RoleArn = role.Arn,
    });
}

}
Inheritance
System.Object
Resource
CustomResource
Recorder
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Aws.Cfg
Assembly: Pulumi.Aws.dll
Syntax
public class Recorder : CustomResource

Constructors

View Source

Recorder(String, RecorderArgs, CustomResourceOptions)

Create a Recorder resource with the given unique name, arguments, and options.

Declaration
public Recorder(string name, RecorderArgs args, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resource

RecorderArgs args

The arguments used to populate this resource's properties

CustomResourceOptions options

A bag of options that control this resource's behavior

Properties

View Source

Name

The name of the recorder. Defaults to default. Changing it recreates the resource.

Declaration
public Output<string> Name { get; }
Property Value
Type Description
Output<System.String>
View Source

RecordingGroup

Recording group - see below.

Declaration
public Output<RecorderRecordingGroup> RecordingGroup { get; }
Property Value
Type Description
Output<RecorderRecordingGroup>
View Source

RoleArn

Amazon Resource Name (ARN) of the IAM role. used to make read or write requests to the delivery channel and to describe the AWS resources associated with the account. See AWS Docs for more details.

Declaration
public Output<string> RoleArn { get; }
Property Value
Type Description
Output<System.String>

Methods

View Source

Get(String, Input<String>, RecorderState, CustomResourceOptions)

Get an existing Recorder resource's state with the given name, ID, and optional extra properties used to qualify the lookup.

Declaration
public static Recorder Get(string name, Input<string> id, RecorderState state = null, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resulting resource.

Input<System.String> id

The unique provider ID of the resource to lookup.

RecorderState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

Returns
Type Description
Recorder
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.