Alibaba Cloud
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
andap-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:
- Output
File string
- Output
File string
- output
File String
- output
File string
- output_
file str
- output
File String
getConfigurationRecorders Result
The following output properties are available:
- Id string
The provider-assigned unique ID for this managed resource.
- Recorders
List<Pulumi.
Ali Cloud. Cfg. Outputs. Get Configuration Recorders Recorder> A list of Config Configuration Recorders. Each element contains the following attributes:
- Output
File string
- Id string
The provider-assigned unique ID for this managed resource.
- Recorders
[]Get
Configuration Recorders Recorder A list of Config Configuration Recorders. Each element contains the following attributes:
- Output
File string
- id String
The provider-assigned unique ID for this managed resource.
- recorders
List<Get
Configuration Recorders Recorder> A list of Config Configuration Recorders. Each element contains the following attributes:
- output
File String
- id string
The provider-assigned unique ID for this managed resource.
- recorders
Get
Configuration Recorders Recorder[] A list of Config Configuration Recorders. Each element contains the following attributes:
- output
File string
- id str
The provider-assigned unique ID for this managed resource.
- recorders
Sequence[Get
Configuration Recorders Recorder] 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:
- output
File String
Supporting Types
GetConfigurationRecordersRecorder
- Account
Id string - Id string
The ID of the Config Configuration Recorder. Value as the
account_id
.account_id
- The ID of the Alicloud account.
- Organization
Enable stringStatus Enterprise version configuration audit enabled status.
- Organization
Master intId The ID of the Enterprise management account.
- Resource
Types List<string> A list of resource types to be monitored.
- Status string
Status of resource monitoring.
- Account
Id string - Id string
The ID of the Config Configuration Recorder. Value as the
account_id
.account_id
- The ID of the Alicloud account.
- Organization
Enable stringStatus Enterprise version configuration audit enabled status.
- Organization
Master intId The ID of the Enterprise management account.
- Resource
Types []string A list of resource types to be monitored.
- Status string
Status of resource monitoring.
- account
Id String - id String
The ID of the Config Configuration Recorder. Value as the
account_id
.account_id
- The ID of the Alicloud account.
- organization
Enable StringStatus Enterprise version configuration audit enabled status.
- organization
Master IntegerId The ID of the Enterprise management account.
- resource
Types List<String> A list of resource types to be monitored.
- status String
Status of resource monitoring.
- account
Id string - id string
The ID of the Config Configuration Recorder. Value as the
account_id
.account_id
- The ID of the Alicloud account.
- organization
Enable stringStatus Enterprise version configuration audit enabled status.
- organization
Master numberId The ID of the Enterprise management account.
- resource
Types 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_ strstatus Enterprise version configuration audit enabled status.
- organization_
master_ intid 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.
- account
Id String - id String
The ID of the Config Configuration Recorder. Value as the
account_id
.account_id
- The ID of the Alicloud account.
- organization
Enable StringStatus Enterprise version configuration audit enabled status.
- organization
Master NumberId The ID of the Enterprise management account.
- resource
Types 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.