getConfigurationRecorders

This data source provides the Config Configuration Recorders of the current Alibaba Cloud user.

NOTE: Available in 1.99.0+.

NOTE: The Cloud Config region only support cn-shanghai and ap-southeast-1.

Example Usage

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
    public MyStack()
    {
        var example = Output.Create(AliCloud.Cfg.GetConfigurationRecorders.InvokeAsync());
        this.ListOfResourceTypes = data.Alicloud_config_configuration_recorders.This.Recorders[0].Resource_types;
    }

    [Output("listOfResourceTypes")]
    public Output<string> ListOfResourceTypes { get; set; }
}
package main

import (
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/cfg"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := cfg.GetConfigurationRecorders(ctx, nil, nil)
		if err != nil {
			return err
		}
		ctx.Export("listOfResourceTypes", data.Alicloud_config_configuration_recorders.This.Recorders[0].Resource_types)
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.cfg.CfgFunctions;
import com.pulumi.alicloud.cfg.inputs.GetConfigurationRecordersArgs;
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) {
        final var example = CfgFunctions.getConfigurationRecorders();

        ctx.export("listOfResourceTypes", data.alicloud_config_configuration_recorders().this().recorders()[0].resource_types());
    }
}
import pulumi
import pulumi_alicloud as alicloud

example = alicloud.cfg.get_configuration_recorders()
pulumi.export("listOfResourceTypes", data["alicloud_config_configuration_recorders"]["this"]["recorders"][0]["resource_types"])
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const example = alicloud.cfg.getConfigurationRecorders({});
export const listOfResourceTypes = data.alicloud_config_configuration_recorders["this"].recorders[0].resource_types;
variables:
  example:
    Fn::Invoke:
      Function: alicloud:cfg:getConfigurationRecorders
      Arguments: {}
outputs:
  listOfResourceTypes: ${data.alicloud_config_configuration_recorders.this.recorders[0].resource_types}

Using getConfigurationRecorders

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getConfigurationRecorders(args: GetConfigurationRecordersArgs, opts?: InvokeOptions): Promise<GetConfigurationRecordersResult>
function getConfigurationRecordersOutput(args: GetConfigurationRecordersOutputArgs, opts?: InvokeOptions): Output<GetConfigurationRecordersResult>
def get_configuration_recorders(output_file: Optional[str] = None,
                                opts: Optional[InvokeOptions] = None) -> GetConfigurationRecordersResult
def get_configuration_recorders_output(output_file: Optional[pulumi.Input[str]] = None,
                                opts: Optional[InvokeOptions] = None) -> Output[GetConfigurationRecordersResult]
func GetConfigurationRecorders(ctx *Context, args *GetConfigurationRecordersArgs, opts ...InvokeOption) (*GetConfigurationRecordersResult, error)
func GetConfigurationRecordersOutput(ctx *Context, args *GetConfigurationRecordersOutputArgs, opts ...InvokeOption) GetConfigurationRecordersResultOutput

> Note: This function is named GetConfigurationRecorders in the Go SDK.

public static class GetConfigurationRecorders 
{
    public static Task<GetConfigurationRecordersResult> InvokeAsync(GetConfigurationRecordersArgs args, InvokeOptions? opts = null)
    public static Output<GetConfigurationRecordersResult> Invoke(GetConfigurationRecordersInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetConfigurationRecordersResult> getConfigurationRecorders(GetConfigurationRecordersArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: alicloud:cfg/getConfigurationRecorders:getConfigurationRecorders
  arguments:
    # arguments dictionary

The following arguments are supported:

OutputFile string
OutputFile string
outputFile String
outputFile string
outputFile String

getConfigurationRecorders Result

The following output properties are available:

Id string

The provider-assigned unique ID for this managed resource.

Recorders List<Pulumi.AliCloud.Cfg.Outputs.GetConfigurationRecordersRecorder>

A list of Config Configuration Recorders. Each element contains the following attributes:

OutputFile string
Id string

The provider-assigned unique ID for this managed resource.

Recorders []GetConfigurationRecordersRecorder

A list of Config Configuration Recorders. Each element contains the following attributes:

OutputFile string
id String

The provider-assigned unique ID for this managed resource.

recorders List<GetConfigurationRecordersRecorder>

A list of Config Configuration Recorders. Each element contains the following attributes:

outputFile String
id string

The provider-assigned unique ID for this managed resource.

recorders GetConfigurationRecordersRecorder[]

A list of Config Configuration Recorders. Each element contains the following attributes:

outputFile string
id str

The provider-assigned unique ID for this managed resource.

recorders Sequence[GetConfigurationRecordersRecorder]

A list of Config Configuration Recorders. Each element contains the following attributes:

output_file str
id String

The provider-assigned unique ID for this managed resource.

recorders List<Property Map>

A list of Config Configuration Recorders. Each element contains the following attributes:

outputFile String

Supporting Types

GetConfigurationRecordersRecorder

AccountId string
Id string

The ID of the Config Configuration Recorder. Value as the account_id.

  • account_id- The ID of the Alicloud account.
OrganizationEnableStatus string

Enterprise version configuration audit enabled status.

OrganizationMasterId int

The ID of the Enterprise management account.

ResourceTypes List<string>

A list of resource types to be monitored.

Status string

Status of resource monitoring.

AccountId string
Id string

The ID of the Config Configuration Recorder. Value as the account_id.

  • account_id- The ID of the Alicloud account.
OrganizationEnableStatus string

Enterprise version configuration audit enabled status.

OrganizationMasterId int

The ID of the Enterprise management account.

ResourceTypes []string

A list of resource types to be monitored.

Status string

Status of resource monitoring.

accountId String
id String

The ID of the Config Configuration Recorder. Value as the account_id.

  • account_id- The ID of the Alicloud account.
organizationEnableStatus String

Enterprise version configuration audit enabled status.

organizationMasterId Integer

The ID of the Enterprise management account.

resourceTypes List<String>

A list of resource types to be monitored.

status String

Status of resource monitoring.

accountId string
id string

The ID of the Config Configuration Recorder. Value as the account_id.

  • account_id- The ID of the Alicloud account.
organizationEnableStatus string

Enterprise version configuration audit enabled status.

organizationMasterId number

The ID of the Enterprise management account.

resourceTypes string[]

A list of resource types to be monitored.

status string

Status of resource monitoring.

account_id str
id str

The ID of the Config Configuration Recorder. Value as the account_id.

  • account_id- The ID of the Alicloud account.
organization_enable_status str

Enterprise version configuration audit enabled status.

organization_master_id int

The ID of the Enterprise management account.

resource_types Sequence[str]

A list of resource types to be monitored.

status str

Status of resource monitoring.

accountId String
id String

The ID of the Config Configuration Recorder. Value as the account_id.

  • account_id- The ID of the Alicloud account.
organizationEnableStatus String

Enterprise version configuration audit enabled status.

organizationMasterId Number

The ID of the Enterprise management account.

resourceTypes List<String>

A list of resource types to be monitored.

status String

Status of resource monitoring.

Package Details

Repository
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes

This Pulumi package is based on the alicloud Terraform Provider.