Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 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 in 1.99.0+.
NOTE: The Cloud Config region only support
cn-shanghai
andap-southeast-1
.
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;
import pulumi
import pulumi_alicloud as alicloud
example = alicloud.cfg.get_configuration_recorders()
pulumi.export("listOfResourceTypes", this["recorders"][0]["resourceTypes"])
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", this.Recorders[0].ResourceTypes)
return nil
})
}
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,
};
});
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());
}
}
variables:
example:
fn::invoke:
Function: alicloud:cfg:getConfigurationRecorders
Arguments: {}
outputs:
listOfResourceTypes: ${this.recorders[0].resourceTypes}
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 - File name where to save data source results (after running
pulumi preview
).
- Output
File string - File name where to save data source results (after running
pulumi preview
).
- output
File String - File name where to save data source results (after running
pulumi preview
).
- output
File 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
).
- output
File 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.
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 - The ID of the Alicloud account.
- Id string
- The ID of the Config Configuration Recorder. Value as the
account_id
. - 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 - The ID of the Alicloud account.
- Id string
- The ID of the Config Configuration Recorder. Value as the
account_id
. - 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 - The ID of the Alicloud account.
- id String
- The ID of the Config Configuration Recorder. Value as the
account_id
. - 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 - The ID of the Alicloud account.
- id string
- The ID of the Config Configuration Recorder. Value as the
account_id
. - 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 - The ID of the Alicloud account.
- id str
- The ID of the Config Configuration Recorder. Value as the
account_id
. - 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 - The ID of the Alicloud account.
- id String
- The ID of the Config Configuration Recorder. Value as the
account_id
. - 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
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.