1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. cfg
  5. getConfigurationRecorders
Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

alicloud.cfg.getConfigurationRecorders

Explore with Pulumi AI

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

NOTE: Available since v1.99.0.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const example = alicloud.cfg.getConfigurationRecorders({});
export const listOfResourceTypes = _this.recorders[0].resourceTypes;
Copy
import pulumi
import pulumi_alicloud as alicloud

example = alicloud.cfg.get_configuration_recorders()
pulumi.export("listOfResourceTypes", this["recorders"][0]["resourceTypes"])
Copy
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, &cfg.GetConfigurationRecordersArgs{}, nil)
		if err != nil {
			return err
		}
		ctx.Export("listOfResourceTypes", this.Recorders[0].ResourceTypes)
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;

return await Deployment.RunAsync(() => 
{
    var example = AliCloud.Cfg.GetConfigurationRecorders.Invoke();

    return new Dictionary<string, object?>
    {
        ["listOfResourceTypes"] = @this.Recorders[0].ResourceTypes,
    };
});
Copy
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", this_.recorders()[0].resourceTypes());
    }
}
Copy
variables:
  example:
    fn::invoke:
      function: alicloud:cfg:getConfigurationRecorders
      arguments: {}
outputs:
  listOfResourceTypes: ${this.recorders[0].resourceTypes}
Copy

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>
Copy
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]
Copy
func GetConfigurationRecorders(ctx *Context, args *GetConfigurationRecordersArgs, opts ...InvokeOption) (*GetConfigurationRecordersResult, error)
func GetConfigurationRecordersOutput(ctx *Context, args *GetConfigurationRecordersOutputArgs, opts ...InvokeOption) GetConfigurationRecordersResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetConfigurationRecordersResult> getConfigurationRecorders(GetConfigurationRecordersArgs args, InvokeOptions options)
public static Output<GetConfigurationRecordersResult> getConfigurationRecorders(GetConfigurationRecordersArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: alicloud:cfg/getConfigurationRecorders:getConfigurationRecorders
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

OutputFile string
File name where to save data source results (after running pulumi preview).
OutputFile string
File name where to save data source results (after running pulumi preview).
outputFile String
File name where to save data source results (after running pulumi preview).
outputFile string
File name where to save data source results (after running pulumi preview).
output_file str
File name where to save data source results (after running pulumi preview).
outputFile String
File name where to save data source results (after running pulumi preview).

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 This property is required. string
The ID of the Alicloud account.
Id This property is required. string
The ID of the Config Configuration Recorder. Value as the account_id.
OrganizationEnableStatus This property is required. string
Enterprise version configuration audit enabled status.
OrganizationMasterId This property is required. int
The ID of the Enterprise management account.
ResourceTypes This property is required. List<string>
A list of resource types to be monitored.
Status This property is required. string
Status of resource monitoring.
AccountId This property is required. string
The ID of the Alicloud account.
Id This property is required. string
The ID of the Config Configuration Recorder. Value as the account_id.
OrganizationEnableStatus This property is required. string
Enterprise version configuration audit enabled status.
OrganizationMasterId This property is required. int
The ID of the Enterprise management account.
ResourceTypes This property is required. []string
A list of resource types to be monitored.
Status This property is required. string
Status of resource monitoring.
accountId This property is required. String
The ID of the Alicloud account.
id This property is required. String
The ID of the Config Configuration Recorder. Value as the account_id.
organizationEnableStatus This property is required. String
Enterprise version configuration audit enabled status.
organizationMasterId This property is required. Integer
The ID of the Enterprise management account.
resourceTypes This property is required. List<String>
A list of resource types to be monitored.
status This property is required. String
Status of resource monitoring.
accountId This property is required. string
The ID of the Alicloud account.
id This property is required. string
The ID of the Config Configuration Recorder. Value as the account_id.
organizationEnableStatus This property is required. string
Enterprise version configuration audit enabled status.
organizationMasterId This property is required. number
The ID of the Enterprise management account.
resourceTypes This property is required. string[]
A list of resource types to be monitored.
status This property is required. string
Status of resource monitoring.
account_id This property is required. str
The ID of the Alicloud account.
id This property is required. str
The ID of the Config Configuration Recorder. Value as the account_id.
organization_enable_status This property is required. str
Enterprise version configuration audit enabled status.
organization_master_id This property is required. int
The ID of the Enterprise management account.
resource_types This property is required. Sequence[str]
A list of resource types to be monitored.
status This property is required. str
Status of resource monitoring.
accountId This property is required. String
The ID of the Alicloud account.
id This property is required. String
The ID of the Config Configuration Recorder. Value as the account_id.
organizationEnableStatus This property is required. String
Enterprise version configuration audit enabled status.
organizationMasterId This property is required. Number
The ID of the Enterprise management account.
resourceTypes This property is required. List<String>
A list of resource types to be monitored.
status This property is required. String
Status of resource monitoring.

Package Details

Repository
Alibaba Cloud pulumi/pulumi-alicloud
License
Apache-2.0
Notes
This Pulumi package is based on the alicloud Terraform Provider.