cfg

package
v2.35.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 16, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigurationRecorder

type ConfigurationRecorder struct {
	pulumi.CustomResourceState

	// - Whether to use the enterprise version configuration audit. Valid values: `true` and `fales`. Default value `false`.
	EnterpriseEdition pulumi.BoolPtrOutput `pulumi:"enterpriseEdition"`
	// Status of resource monitoring. Values: `REGISTRABLE`: Not enabled, `BUILDING`: Building and `REGISTERED`: Enabled.
	OrganizationEnableStatus pulumi.StringOutput `pulumi:"organizationEnableStatus"`
	// The ID of the Enterprise management account.
	OrganizationMasterId pulumi.IntOutput `pulumi:"organizationMasterId"`
	// A list of resource types to be monitored. [Resource types that support Cloud Config.](https://www.alibabacloud.com/help/en/doc-detail/127411.htm)
	ResourceTypes pulumi.StringArrayOutput `pulumi:"resourceTypes"`
	// Enterprise version configuration audit enabled status. Values: `REGISTRABLE`: Not registered, `BUILDING`: Under construction, `REGISTERED`: Registered and `REBUILDING`: Rebuilding.
	Status pulumi.StringOutput `pulumi:"status"`
}

Provides a Alicloud Config Configuration Recorder resource. Cloud Config is a specialized service for evaluating resources. Cloud Config tracks configuration changes of your resources and evaluates configuration compliance. Cloud Config can help you evaluate numerous resources and maintain the continuous compliance of your cloud infrastructure. For information about Alicloud Config Configuration Recorder and how to use it, see [What is Cloud Config.](https://www.alibabacloud.com/help/en/doc-detail/127388.htm)

> **NOTE:** Available in v1.99.0+.

> **NOTE:** The Cloud Config region only support `cn-shanghai` and `ap-northeast-1`.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v2/go/alicloud/cfg"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := cfg.NewConfigurationRecorder(ctx, "example", &cfg.ConfigurationRecorderArgs{
			ResourceTypes: pulumi.StringArray{
				pulumi.String("ACS::ECS::Instance"),
				pulumi.String("ACS::ECS::Disk"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Alicloud Config Configuration Recorder can be imported using the id, e.g.

```sh

$ pulumi import alicloud:cfg/configurationRecorder:ConfigurationRecorder example 122378463********

```

func GetConfigurationRecorder

func GetConfigurationRecorder(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ConfigurationRecorderState, opts ...pulumi.ResourceOption) (*ConfigurationRecorder, error)

GetConfigurationRecorder gets an existing ConfigurationRecorder resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewConfigurationRecorder

func NewConfigurationRecorder(ctx *pulumi.Context,
	name string, args *ConfigurationRecorderArgs, opts ...pulumi.ResourceOption) (*ConfigurationRecorder, error)

NewConfigurationRecorder registers a new resource with the given unique name, arguments, and options.

func (*ConfigurationRecorder) ElementType added in v2.25.1

func (*ConfigurationRecorder) ElementType() reflect.Type

func (*ConfigurationRecorder) ToConfigurationRecorderOutput added in v2.25.1

func (i *ConfigurationRecorder) ToConfigurationRecorderOutput() ConfigurationRecorderOutput

func (*ConfigurationRecorder) ToConfigurationRecorderOutputWithContext added in v2.25.1

func (i *ConfigurationRecorder) ToConfigurationRecorderOutputWithContext(ctx context.Context) ConfigurationRecorderOutput

func (*ConfigurationRecorder) ToConfigurationRecorderPtrOutput added in v2.35.1

func (i *ConfigurationRecorder) ToConfigurationRecorderPtrOutput() ConfigurationRecorderPtrOutput

func (*ConfigurationRecorder) ToConfigurationRecorderPtrOutputWithContext added in v2.35.1

func (i *ConfigurationRecorder) ToConfigurationRecorderPtrOutputWithContext(ctx context.Context) ConfigurationRecorderPtrOutput

type ConfigurationRecorderArgs

type ConfigurationRecorderArgs struct {
	// - Whether to use the enterprise version configuration audit. Valid values: `true` and `fales`. Default value `false`.
	EnterpriseEdition pulumi.BoolPtrInput
	// A list of resource types to be monitored. [Resource types that support Cloud Config.](https://www.alibabacloud.com/help/en/doc-detail/127411.htm)
	ResourceTypes pulumi.StringArrayInput
}

The set of arguments for constructing a ConfigurationRecorder resource.

func (ConfigurationRecorderArgs) ElementType

func (ConfigurationRecorderArgs) ElementType() reflect.Type

type ConfigurationRecorderArray added in v2.35.1

type ConfigurationRecorderArray []ConfigurationRecorderInput

func (ConfigurationRecorderArray) ElementType added in v2.35.1

func (ConfigurationRecorderArray) ElementType() reflect.Type

func (ConfigurationRecorderArray) ToConfigurationRecorderArrayOutput added in v2.35.1

func (i ConfigurationRecorderArray) ToConfigurationRecorderArrayOutput() ConfigurationRecorderArrayOutput

func (ConfigurationRecorderArray) ToConfigurationRecorderArrayOutputWithContext added in v2.35.1

func (i ConfigurationRecorderArray) ToConfigurationRecorderArrayOutputWithContext(ctx context.Context) ConfigurationRecorderArrayOutput

type ConfigurationRecorderArrayInput added in v2.35.1

type ConfigurationRecorderArrayInput interface {
	pulumi.Input

	ToConfigurationRecorderArrayOutput() ConfigurationRecorderArrayOutput
	ToConfigurationRecorderArrayOutputWithContext(context.Context) ConfigurationRecorderArrayOutput
}

ConfigurationRecorderArrayInput is an input type that accepts ConfigurationRecorderArray and ConfigurationRecorderArrayOutput values. You can construct a concrete instance of `ConfigurationRecorderArrayInput` via:

ConfigurationRecorderArray{ ConfigurationRecorderArgs{...} }

type ConfigurationRecorderArrayOutput added in v2.35.1

type ConfigurationRecorderArrayOutput struct{ *pulumi.OutputState }

func (ConfigurationRecorderArrayOutput) ElementType added in v2.35.1

func (ConfigurationRecorderArrayOutput) Index added in v2.35.1

func (ConfigurationRecorderArrayOutput) ToConfigurationRecorderArrayOutput added in v2.35.1

func (o ConfigurationRecorderArrayOutput) ToConfigurationRecorderArrayOutput() ConfigurationRecorderArrayOutput

func (ConfigurationRecorderArrayOutput) ToConfigurationRecorderArrayOutputWithContext added in v2.35.1

func (o ConfigurationRecorderArrayOutput) ToConfigurationRecorderArrayOutputWithContext(ctx context.Context) ConfigurationRecorderArrayOutput

type ConfigurationRecorderInput added in v2.25.1

type ConfigurationRecorderInput interface {
	pulumi.Input

	ToConfigurationRecorderOutput() ConfigurationRecorderOutput
	ToConfigurationRecorderOutputWithContext(ctx context.Context) ConfigurationRecorderOutput
}

type ConfigurationRecorderMap added in v2.35.1

type ConfigurationRecorderMap map[string]ConfigurationRecorderInput

func (ConfigurationRecorderMap) ElementType added in v2.35.1

func (ConfigurationRecorderMap) ElementType() reflect.Type

func (ConfigurationRecorderMap) ToConfigurationRecorderMapOutput added in v2.35.1

func (i ConfigurationRecorderMap) ToConfigurationRecorderMapOutput() ConfigurationRecorderMapOutput

func (ConfigurationRecorderMap) ToConfigurationRecorderMapOutputWithContext added in v2.35.1

func (i ConfigurationRecorderMap) ToConfigurationRecorderMapOutputWithContext(ctx context.Context) ConfigurationRecorderMapOutput

type ConfigurationRecorderMapInput added in v2.35.1

type ConfigurationRecorderMapInput interface {
	pulumi.Input

	ToConfigurationRecorderMapOutput() ConfigurationRecorderMapOutput
	ToConfigurationRecorderMapOutputWithContext(context.Context) ConfigurationRecorderMapOutput
}

ConfigurationRecorderMapInput is an input type that accepts ConfigurationRecorderMap and ConfigurationRecorderMapOutput values. You can construct a concrete instance of `ConfigurationRecorderMapInput` via:

ConfigurationRecorderMap{ "key": ConfigurationRecorderArgs{...} }

type ConfigurationRecorderMapOutput added in v2.35.1

type ConfigurationRecorderMapOutput struct{ *pulumi.OutputState }

func (ConfigurationRecorderMapOutput) ElementType added in v2.35.1

func (ConfigurationRecorderMapOutput) MapIndex added in v2.35.1

func (ConfigurationRecorderMapOutput) ToConfigurationRecorderMapOutput added in v2.35.1

func (o ConfigurationRecorderMapOutput) ToConfigurationRecorderMapOutput() ConfigurationRecorderMapOutput

func (ConfigurationRecorderMapOutput) ToConfigurationRecorderMapOutputWithContext added in v2.35.1

func (o ConfigurationRecorderMapOutput) ToConfigurationRecorderMapOutputWithContext(ctx context.Context) ConfigurationRecorderMapOutput

type ConfigurationRecorderOutput added in v2.25.1

type ConfigurationRecorderOutput struct {
	*pulumi.OutputState
}

func (ConfigurationRecorderOutput) ElementType added in v2.25.1

func (ConfigurationRecorderOutput) ToConfigurationRecorderOutput added in v2.25.1

func (o ConfigurationRecorderOutput) ToConfigurationRecorderOutput() ConfigurationRecorderOutput

func (ConfigurationRecorderOutput) ToConfigurationRecorderOutputWithContext added in v2.25.1

func (o ConfigurationRecorderOutput) ToConfigurationRecorderOutputWithContext(ctx context.Context) ConfigurationRecorderOutput

func (ConfigurationRecorderOutput) ToConfigurationRecorderPtrOutput added in v2.35.1

func (o ConfigurationRecorderOutput) ToConfigurationRecorderPtrOutput() ConfigurationRecorderPtrOutput

func (ConfigurationRecorderOutput) ToConfigurationRecorderPtrOutputWithContext added in v2.35.1

func (o ConfigurationRecorderOutput) ToConfigurationRecorderPtrOutputWithContext(ctx context.Context) ConfigurationRecorderPtrOutput

type ConfigurationRecorderPtrInput added in v2.35.1

type ConfigurationRecorderPtrInput interface {
	pulumi.Input

	ToConfigurationRecorderPtrOutput() ConfigurationRecorderPtrOutput
	ToConfigurationRecorderPtrOutputWithContext(ctx context.Context) ConfigurationRecorderPtrOutput
}

type ConfigurationRecorderPtrOutput added in v2.35.1

type ConfigurationRecorderPtrOutput struct {
	*pulumi.OutputState
}

func (ConfigurationRecorderPtrOutput) ElementType added in v2.35.1

func (ConfigurationRecorderPtrOutput) ToConfigurationRecorderPtrOutput added in v2.35.1

func (o ConfigurationRecorderPtrOutput) ToConfigurationRecorderPtrOutput() ConfigurationRecorderPtrOutput

func (ConfigurationRecorderPtrOutput) ToConfigurationRecorderPtrOutputWithContext added in v2.35.1

func (o ConfigurationRecorderPtrOutput) ToConfigurationRecorderPtrOutputWithContext(ctx context.Context) ConfigurationRecorderPtrOutput

type ConfigurationRecorderState

type ConfigurationRecorderState struct {
	// - Whether to use the enterprise version configuration audit. Valid values: `true` and `fales`. Default value `false`.
	EnterpriseEdition pulumi.BoolPtrInput
	// Status of resource monitoring. Values: `REGISTRABLE`: Not enabled, `BUILDING`: Building and `REGISTERED`: Enabled.
	OrganizationEnableStatus pulumi.StringPtrInput
	// The ID of the Enterprise management account.
	OrganizationMasterId pulumi.IntPtrInput
	// A list of resource types to be monitored. [Resource types that support Cloud Config.](https://www.alibabacloud.com/help/en/doc-detail/127411.htm)
	ResourceTypes pulumi.StringArrayInput
	// Enterprise version configuration audit enabled status. Values: `REGISTRABLE`: Not registered, `BUILDING`: Under construction, `REGISTERED`: Registered and `REBUILDING`: Rebuilding.
	Status pulumi.StringPtrInput
}

func (ConfigurationRecorderState) ElementType

func (ConfigurationRecorderState) ElementType() reflect.Type

type DeliveryChannel

type DeliveryChannel struct {
	pulumi.CustomResourceState

	// The Alibaba Cloud Resource Name (ARN) of the role to be assumed by the delivery method.
	DeliveryChannelAssumeRoleArn pulumi.StringOutput `pulumi:"deliveryChannelAssumeRoleArn"`
	// The rule attached to the delivery method. This parameter is applicable only to delivery methods of the MNS type. Please refer to api [PutDeliveryChannel](https://www.alibabacloud.com/help/en/doc-detail/174253.htm) for example format.
	DeliveryChannelCondition pulumi.StringOutput `pulumi:"deliveryChannelCondition"`
	// The name of the delivery channel.
	DeliveryChannelName pulumi.StringOutput `pulumi:"deliveryChannelName"`
	// - The ARN of the delivery destination. This parameter is required when you create a delivery method. The value must be in one of the following formats:
	// - `acs:oss:{RegionId}:{Aliuid}:{bucketName}`: if your delivery destination is an Object Storage Service (OSS) bucket.
	// - `acs:mns:{RegionId}:{Aliuid}:/topics/{topicName}`: if your delivery destination is a Message Service (MNS) topic.
	// - `acs:log:{RegionId}:{Aliuid}:project/{projectName}/logstore/{logstoreName}`: if your delivery destination is a Log Service Logstore.
	DeliveryChannelTargetArn pulumi.StringOutput `pulumi:"deliveryChannelTargetArn"`
	// - The type of the delivery method. This parameter is required when you create a delivery method. Valid values: `OSS`: Object Storage, `MNS`: Message Service, `SLS`: Log Service.
	DeliveryChannelType pulumi.StringOutput `pulumi:"deliveryChannelType"`
	// The description of the delivery method.
	Description pulumi.StringOutput `pulumi:"description"`
	// The status of the delivery method. Valid values: `0`: The delivery method is disabled., `1`: The delivery destination is enabled. This is the default value.
	Status pulumi.IntOutput `pulumi:"status"`
}

## Import

Alicloud Config Delivery Channel can be imported using the id, e.g.

```sh

$ pulumi import alicloud:cfg/deliveryChannel:DeliveryChannel example cdc-49a2ad756057********

```

func GetDeliveryChannel

func GetDeliveryChannel(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *DeliveryChannelState, opts ...pulumi.ResourceOption) (*DeliveryChannel, error)

GetDeliveryChannel gets an existing DeliveryChannel resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewDeliveryChannel

func NewDeliveryChannel(ctx *pulumi.Context,
	name string, args *DeliveryChannelArgs, opts ...pulumi.ResourceOption) (*DeliveryChannel, error)

NewDeliveryChannel registers a new resource with the given unique name, arguments, and options.

func (*DeliveryChannel) ElementType added in v2.25.1

func (*DeliveryChannel) ElementType() reflect.Type

func (*DeliveryChannel) ToDeliveryChannelOutput added in v2.25.1

func (i *DeliveryChannel) ToDeliveryChannelOutput() DeliveryChannelOutput

func (*DeliveryChannel) ToDeliveryChannelOutputWithContext added in v2.25.1

func (i *DeliveryChannel) ToDeliveryChannelOutputWithContext(ctx context.Context) DeliveryChannelOutput

func (*DeliveryChannel) ToDeliveryChannelPtrOutput added in v2.35.1

func (i *DeliveryChannel) ToDeliveryChannelPtrOutput() DeliveryChannelPtrOutput

func (*DeliveryChannel) ToDeliveryChannelPtrOutputWithContext added in v2.35.1

func (i *DeliveryChannel) ToDeliveryChannelPtrOutputWithContext(ctx context.Context) DeliveryChannelPtrOutput

type DeliveryChannelArgs

type DeliveryChannelArgs struct {
	// The Alibaba Cloud Resource Name (ARN) of the role to be assumed by the delivery method.
	DeliveryChannelAssumeRoleArn pulumi.StringInput
	// The rule attached to the delivery method. This parameter is applicable only to delivery methods of the MNS type. Please refer to api [PutDeliveryChannel](https://www.alibabacloud.com/help/en/doc-detail/174253.htm) for example format.
	DeliveryChannelCondition pulumi.StringPtrInput
	// The name of the delivery channel.
	DeliveryChannelName pulumi.StringPtrInput
	// - The ARN of the delivery destination. This parameter is required when you create a delivery method. The value must be in one of the following formats:
	// - `acs:oss:{RegionId}:{Aliuid}:{bucketName}`: if your delivery destination is an Object Storage Service (OSS) bucket.
	// - `acs:mns:{RegionId}:{Aliuid}:/topics/{topicName}`: if your delivery destination is a Message Service (MNS) topic.
	// - `acs:log:{RegionId}:{Aliuid}:project/{projectName}/logstore/{logstoreName}`: if your delivery destination is a Log Service Logstore.
	DeliveryChannelTargetArn pulumi.StringInput
	// - The type of the delivery method. This parameter is required when you create a delivery method. Valid values: `OSS`: Object Storage, `MNS`: Message Service, `SLS`: Log Service.
	DeliveryChannelType pulumi.StringInput
	// The description of the delivery method.
	Description pulumi.StringPtrInput
	// The status of the delivery method. Valid values: `0`: The delivery method is disabled., `1`: The delivery destination is enabled. This is the default value.
	Status pulumi.IntPtrInput
}

The set of arguments for constructing a DeliveryChannel resource.

func (DeliveryChannelArgs) ElementType

func (DeliveryChannelArgs) ElementType() reflect.Type

type DeliveryChannelArray added in v2.35.1

type DeliveryChannelArray []DeliveryChannelInput

func (DeliveryChannelArray) ElementType added in v2.35.1

func (DeliveryChannelArray) ElementType() reflect.Type

func (DeliveryChannelArray) ToDeliveryChannelArrayOutput added in v2.35.1

func (i DeliveryChannelArray) ToDeliveryChannelArrayOutput() DeliveryChannelArrayOutput

func (DeliveryChannelArray) ToDeliveryChannelArrayOutputWithContext added in v2.35.1

func (i DeliveryChannelArray) ToDeliveryChannelArrayOutputWithContext(ctx context.Context) DeliveryChannelArrayOutput

type DeliveryChannelArrayInput added in v2.35.1

type DeliveryChannelArrayInput interface {
	pulumi.Input

	ToDeliveryChannelArrayOutput() DeliveryChannelArrayOutput
	ToDeliveryChannelArrayOutputWithContext(context.Context) DeliveryChannelArrayOutput
}

DeliveryChannelArrayInput is an input type that accepts DeliveryChannelArray and DeliveryChannelArrayOutput values. You can construct a concrete instance of `DeliveryChannelArrayInput` via:

DeliveryChannelArray{ DeliveryChannelArgs{...} }

type DeliveryChannelArrayOutput added in v2.35.1

type DeliveryChannelArrayOutput struct{ *pulumi.OutputState }

func (DeliveryChannelArrayOutput) ElementType added in v2.35.1

func (DeliveryChannelArrayOutput) ElementType() reflect.Type

func (DeliveryChannelArrayOutput) Index added in v2.35.1

func (DeliveryChannelArrayOutput) ToDeliveryChannelArrayOutput added in v2.35.1

func (o DeliveryChannelArrayOutput) ToDeliveryChannelArrayOutput() DeliveryChannelArrayOutput

func (DeliveryChannelArrayOutput) ToDeliveryChannelArrayOutputWithContext added in v2.35.1

func (o DeliveryChannelArrayOutput) ToDeliveryChannelArrayOutputWithContext(ctx context.Context) DeliveryChannelArrayOutput

type DeliveryChannelInput added in v2.25.1

type DeliveryChannelInput interface {
	pulumi.Input

	ToDeliveryChannelOutput() DeliveryChannelOutput
	ToDeliveryChannelOutputWithContext(ctx context.Context) DeliveryChannelOutput
}

type DeliveryChannelMap added in v2.35.1

type DeliveryChannelMap map[string]DeliveryChannelInput

func (DeliveryChannelMap) ElementType added in v2.35.1

func (DeliveryChannelMap) ElementType() reflect.Type

func (DeliveryChannelMap) ToDeliveryChannelMapOutput added in v2.35.1

func (i DeliveryChannelMap) ToDeliveryChannelMapOutput() DeliveryChannelMapOutput

func (DeliveryChannelMap) ToDeliveryChannelMapOutputWithContext added in v2.35.1

func (i DeliveryChannelMap) ToDeliveryChannelMapOutputWithContext(ctx context.Context) DeliveryChannelMapOutput

type DeliveryChannelMapInput added in v2.35.1

type DeliveryChannelMapInput interface {
	pulumi.Input

	ToDeliveryChannelMapOutput() DeliveryChannelMapOutput
	ToDeliveryChannelMapOutputWithContext(context.Context) DeliveryChannelMapOutput
}

DeliveryChannelMapInput is an input type that accepts DeliveryChannelMap and DeliveryChannelMapOutput values. You can construct a concrete instance of `DeliveryChannelMapInput` via:

DeliveryChannelMap{ "key": DeliveryChannelArgs{...} }

type DeliveryChannelMapOutput added in v2.35.1

type DeliveryChannelMapOutput struct{ *pulumi.OutputState }

func (DeliveryChannelMapOutput) ElementType added in v2.35.1

func (DeliveryChannelMapOutput) ElementType() reflect.Type

func (DeliveryChannelMapOutput) MapIndex added in v2.35.1

func (DeliveryChannelMapOutput) ToDeliveryChannelMapOutput added in v2.35.1

func (o DeliveryChannelMapOutput) ToDeliveryChannelMapOutput() DeliveryChannelMapOutput

func (DeliveryChannelMapOutput) ToDeliveryChannelMapOutputWithContext added in v2.35.1

func (o DeliveryChannelMapOutput) ToDeliveryChannelMapOutputWithContext(ctx context.Context) DeliveryChannelMapOutput

type DeliveryChannelOutput added in v2.25.1

type DeliveryChannelOutput struct {
	*pulumi.OutputState
}

func (DeliveryChannelOutput) ElementType added in v2.25.1

func (DeliveryChannelOutput) ElementType() reflect.Type

func (DeliveryChannelOutput) ToDeliveryChannelOutput added in v2.25.1

func (o DeliveryChannelOutput) ToDeliveryChannelOutput() DeliveryChannelOutput

func (DeliveryChannelOutput) ToDeliveryChannelOutputWithContext added in v2.25.1

func (o DeliveryChannelOutput) ToDeliveryChannelOutputWithContext(ctx context.Context) DeliveryChannelOutput

func (DeliveryChannelOutput) ToDeliveryChannelPtrOutput added in v2.35.1

func (o DeliveryChannelOutput) ToDeliveryChannelPtrOutput() DeliveryChannelPtrOutput

func (DeliveryChannelOutput) ToDeliveryChannelPtrOutputWithContext added in v2.35.1

func (o DeliveryChannelOutput) ToDeliveryChannelPtrOutputWithContext(ctx context.Context) DeliveryChannelPtrOutput

type DeliveryChannelPtrInput added in v2.35.1

type DeliveryChannelPtrInput interface {
	pulumi.Input

	ToDeliveryChannelPtrOutput() DeliveryChannelPtrOutput
	ToDeliveryChannelPtrOutputWithContext(ctx context.Context) DeliveryChannelPtrOutput
}

type DeliveryChannelPtrOutput added in v2.35.1

type DeliveryChannelPtrOutput struct {
	*pulumi.OutputState
}

func (DeliveryChannelPtrOutput) ElementType added in v2.35.1

func (DeliveryChannelPtrOutput) ElementType() reflect.Type

func (DeliveryChannelPtrOutput) ToDeliveryChannelPtrOutput added in v2.35.1

func (o DeliveryChannelPtrOutput) ToDeliveryChannelPtrOutput() DeliveryChannelPtrOutput

func (DeliveryChannelPtrOutput) ToDeliveryChannelPtrOutputWithContext added in v2.35.1

func (o DeliveryChannelPtrOutput) ToDeliveryChannelPtrOutputWithContext(ctx context.Context) DeliveryChannelPtrOutput

type DeliveryChannelState

type DeliveryChannelState struct {
	// The Alibaba Cloud Resource Name (ARN) of the role to be assumed by the delivery method.
	DeliveryChannelAssumeRoleArn pulumi.StringPtrInput
	// The rule attached to the delivery method. This parameter is applicable only to delivery methods of the MNS type. Please refer to api [PutDeliveryChannel](https://www.alibabacloud.com/help/en/doc-detail/174253.htm) for example format.
	DeliveryChannelCondition pulumi.StringPtrInput
	// The name of the delivery channel.
	DeliveryChannelName pulumi.StringPtrInput
	// - The ARN of the delivery destination. This parameter is required when you create a delivery method. The value must be in one of the following formats:
	// - `acs:oss:{RegionId}:{Aliuid}:{bucketName}`: if your delivery destination is an Object Storage Service (OSS) bucket.
	// - `acs:mns:{RegionId}:{Aliuid}:/topics/{topicName}`: if your delivery destination is a Message Service (MNS) topic.
	// - `acs:log:{RegionId}:{Aliuid}:project/{projectName}/logstore/{logstoreName}`: if your delivery destination is a Log Service Logstore.
	DeliveryChannelTargetArn pulumi.StringPtrInput
	// - The type of the delivery method. This parameter is required when you create a delivery method. Valid values: `OSS`: Object Storage, `MNS`: Message Service, `SLS`: Log Service.
	DeliveryChannelType pulumi.StringPtrInput
	// The description of the delivery method.
	Description pulumi.StringPtrInput
	// The status of the delivery method. Valid values: `0`: The delivery method is disabled., `1`: The delivery destination is enabled. This is the default value.
	Status pulumi.IntPtrInput
}

func (DeliveryChannelState) ElementType

func (DeliveryChannelState) ElementType() reflect.Type

type GetConfigurationRecordersArgs

type GetConfigurationRecordersArgs struct {
	OutputFile *string `pulumi:"outputFile"`
}

A collection of arguments for invoking getConfigurationRecorders.

type GetConfigurationRecordersRecorder

type GetConfigurationRecordersRecorder struct {
	AccountId string `pulumi:"accountId"`
	// The ID of the Config Configuration Recorder. Value as the `accountId`.
	// * `accountId`- The ID of the Alicloud account.
	Id string `pulumi:"id"`
	// Status of resource monitoring.
	OrganizationEnableStatus string `pulumi:"organizationEnableStatus"`
	// The ID of the Enterprise management account.
	OrganizationMasterId int `pulumi:"organizationMasterId"`
	// A list of resource types to be monitored.
	ResourceTypes []string `pulumi:"resourceTypes"`
	// Enterprise version configuration audit enabled status.
	Status string `pulumi:"status"`
}

type GetConfigurationRecordersRecorderArgs

type GetConfigurationRecordersRecorderArgs struct {
	AccountId pulumi.StringInput `pulumi:"accountId"`
	// The ID of the Config Configuration Recorder. Value as the `accountId`.
	// * `accountId`- The ID of the Alicloud account.
	Id pulumi.StringInput `pulumi:"id"`
	// Status of resource monitoring.
	OrganizationEnableStatus pulumi.StringInput `pulumi:"organizationEnableStatus"`
	// The ID of the Enterprise management account.
	OrganizationMasterId pulumi.IntInput `pulumi:"organizationMasterId"`
	// A list of resource types to be monitored.
	ResourceTypes pulumi.StringArrayInput `pulumi:"resourceTypes"`
	// Enterprise version configuration audit enabled status.
	Status pulumi.StringInput `pulumi:"status"`
}

func (GetConfigurationRecordersRecorderArgs) ElementType

func (GetConfigurationRecordersRecorderArgs) ToGetConfigurationRecordersRecorderOutput

func (i GetConfigurationRecordersRecorderArgs) ToGetConfigurationRecordersRecorderOutput() GetConfigurationRecordersRecorderOutput

func (GetConfigurationRecordersRecorderArgs) ToGetConfigurationRecordersRecorderOutputWithContext

func (i GetConfigurationRecordersRecorderArgs) ToGetConfigurationRecordersRecorderOutputWithContext(ctx context.Context) GetConfigurationRecordersRecorderOutput

type GetConfigurationRecordersRecorderArray

type GetConfigurationRecordersRecorderArray []GetConfigurationRecordersRecorderInput

func (GetConfigurationRecordersRecorderArray) ElementType

func (GetConfigurationRecordersRecorderArray) ToGetConfigurationRecordersRecorderArrayOutput

func (i GetConfigurationRecordersRecorderArray) ToGetConfigurationRecordersRecorderArrayOutput() GetConfigurationRecordersRecorderArrayOutput

func (GetConfigurationRecordersRecorderArray) ToGetConfigurationRecordersRecorderArrayOutputWithContext

func (i GetConfigurationRecordersRecorderArray) ToGetConfigurationRecordersRecorderArrayOutputWithContext(ctx context.Context) GetConfigurationRecordersRecorderArrayOutput

type GetConfigurationRecordersRecorderArrayInput

type GetConfigurationRecordersRecorderArrayInput interface {
	pulumi.Input

	ToGetConfigurationRecordersRecorderArrayOutput() GetConfigurationRecordersRecorderArrayOutput
	ToGetConfigurationRecordersRecorderArrayOutputWithContext(context.Context) GetConfigurationRecordersRecorderArrayOutput
}

GetConfigurationRecordersRecorderArrayInput is an input type that accepts GetConfigurationRecordersRecorderArray and GetConfigurationRecordersRecorderArrayOutput values. You can construct a concrete instance of `GetConfigurationRecordersRecorderArrayInput` via:

GetConfigurationRecordersRecorderArray{ GetConfigurationRecordersRecorderArgs{...} }

type GetConfigurationRecordersRecorderArrayOutput

type GetConfigurationRecordersRecorderArrayOutput struct{ *pulumi.OutputState }

func (GetConfigurationRecordersRecorderArrayOutput) ElementType

func (GetConfigurationRecordersRecorderArrayOutput) Index

func (GetConfigurationRecordersRecorderArrayOutput) ToGetConfigurationRecordersRecorderArrayOutput

func (o GetConfigurationRecordersRecorderArrayOutput) ToGetConfigurationRecordersRecorderArrayOutput() GetConfigurationRecordersRecorderArrayOutput

func (GetConfigurationRecordersRecorderArrayOutput) ToGetConfigurationRecordersRecorderArrayOutputWithContext

func (o GetConfigurationRecordersRecorderArrayOutput) ToGetConfigurationRecordersRecorderArrayOutputWithContext(ctx context.Context) GetConfigurationRecordersRecorderArrayOutput

type GetConfigurationRecordersRecorderInput

type GetConfigurationRecordersRecorderInput interface {
	pulumi.Input

	ToGetConfigurationRecordersRecorderOutput() GetConfigurationRecordersRecorderOutput
	ToGetConfigurationRecordersRecorderOutputWithContext(context.Context) GetConfigurationRecordersRecorderOutput
}

GetConfigurationRecordersRecorderInput is an input type that accepts GetConfigurationRecordersRecorderArgs and GetConfigurationRecordersRecorderOutput values. You can construct a concrete instance of `GetConfigurationRecordersRecorderInput` via:

GetConfigurationRecordersRecorderArgs{...}

type GetConfigurationRecordersRecorderOutput

type GetConfigurationRecordersRecorderOutput struct{ *pulumi.OutputState }

func (GetConfigurationRecordersRecorderOutput) AccountId

func (GetConfigurationRecordersRecorderOutput) ElementType

func (GetConfigurationRecordersRecorderOutput) Id

The ID of the Config Configuration Recorder. Value as the `accountId`. * `accountId`- The ID of the Alicloud account.

func (GetConfigurationRecordersRecorderOutput) OrganizationEnableStatus

func (o GetConfigurationRecordersRecorderOutput) OrganizationEnableStatus() pulumi.StringOutput

Status of resource monitoring.

func (GetConfigurationRecordersRecorderOutput) OrganizationMasterId

func (o GetConfigurationRecordersRecorderOutput) OrganizationMasterId() pulumi.IntOutput

The ID of the Enterprise management account.

func (GetConfigurationRecordersRecorderOutput) ResourceTypes

A list of resource types to be monitored.

func (GetConfigurationRecordersRecorderOutput) Status

Enterprise version configuration audit enabled status.

func (GetConfigurationRecordersRecorderOutput) ToGetConfigurationRecordersRecorderOutput

func (o GetConfigurationRecordersRecorderOutput) ToGetConfigurationRecordersRecorderOutput() GetConfigurationRecordersRecorderOutput

func (GetConfigurationRecordersRecorderOutput) ToGetConfigurationRecordersRecorderOutputWithContext

func (o GetConfigurationRecordersRecorderOutput) ToGetConfigurationRecordersRecorderOutputWithContext(ctx context.Context) GetConfigurationRecordersRecorderOutput

type GetConfigurationRecordersResult

type GetConfigurationRecordersResult struct {
	// The provider-assigned unique ID for this managed resource.
	Id         string  `pulumi:"id"`
	OutputFile *string `pulumi:"outputFile"`
	// A list of Config Configuration Recorders. Each element contains the following attributes:
	Recorders []GetConfigurationRecordersRecorder `pulumi:"recorders"`
}

A collection of values returned by getConfigurationRecorders.

func GetConfigurationRecorders

func GetConfigurationRecorders(ctx *pulumi.Context, args *GetConfigurationRecordersArgs, opts ...pulumi.InvokeOption) (*GetConfigurationRecordersResult, error)

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-northeast-1`.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v2/go/alicloud/cfg"
"github.com/pulumi/pulumi/sdk/v2/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
	})
}

```

type GetDeliveryChannelsArgs

type GetDeliveryChannelsArgs struct {
	// A list of Config Delivery Channel IDs.
	Ids []string `pulumi:"ids"`
	// A regex string to filter results by delivery channel name.
	NameRegex  *string `pulumi:"nameRegex"`
	OutputFile *string `pulumi:"outputFile"`
	// The status of the config delivery channel. Valid values `0`: Disable delivery channel, `1`: Enable delivery channel.
	Status *int `pulumi:"status"`
}

A collection of arguments for invoking getDeliveryChannels.

type GetDeliveryChannelsChannel

type GetDeliveryChannelsChannel struct {
	// The Alibaba Cloud Resource Name (ARN) of the role assumed by delivery method.
	DeliveryChannelAssumeRoleArn string `pulumi:"deliveryChannelAssumeRoleArn"`
	// The rule attached to the delivery method. This parameter is applicable only to delivery methods of the Message Service (MNS) type.
	DeliveryChannelCondition string `pulumi:"deliveryChannelCondition"`
	// The ID of the delivery channel.
	DeliveryChannelId string `pulumi:"deliveryChannelId"`
	// The name of the delivery channel.
	DeliveryChannelName string `pulumi:"deliveryChannelName"`
	// The ARN of the delivery destination.
	DeliveryChannelTargetArn string `pulumi:"deliveryChannelTargetArn"`
	// The type of the delivery method.
	DeliveryChannelType string `pulumi:"deliveryChannelType"`
	// The description of the delivery method.
	Description string `pulumi:"description"`
	// The ID of the Config Delivery Channel.
	Id string `pulumi:"id"`
	// The status of the config delivery channel. Valid values `0`: Disable delivery channel, `1`: Enable delivery channel.
	Status int `pulumi:"status"`
}

type GetDeliveryChannelsChannelArgs

type GetDeliveryChannelsChannelArgs struct {
	// The Alibaba Cloud Resource Name (ARN) of the role assumed by delivery method.
	DeliveryChannelAssumeRoleArn pulumi.StringInput `pulumi:"deliveryChannelAssumeRoleArn"`
	// The rule attached to the delivery method. This parameter is applicable only to delivery methods of the Message Service (MNS) type.
	DeliveryChannelCondition pulumi.StringInput `pulumi:"deliveryChannelCondition"`
	// The ID of the delivery channel.
	DeliveryChannelId pulumi.StringInput `pulumi:"deliveryChannelId"`
	// The name of the delivery channel.
	DeliveryChannelName pulumi.StringInput `pulumi:"deliveryChannelName"`
	// The ARN of the delivery destination.
	DeliveryChannelTargetArn pulumi.StringInput `pulumi:"deliveryChannelTargetArn"`
	// The type of the delivery method.
	DeliveryChannelType pulumi.StringInput `pulumi:"deliveryChannelType"`
	// The description of the delivery method.
	Description pulumi.StringInput `pulumi:"description"`
	// The ID of the Config Delivery Channel.
	Id pulumi.StringInput `pulumi:"id"`
	// The status of the config delivery channel. Valid values `0`: Disable delivery channel, `1`: Enable delivery channel.
	Status pulumi.IntInput `pulumi:"status"`
}

func (GetDeliveryChannelsChannelArgs) ElementType

func (GetDeliveryChannelsChannelArgs) ToGetDeliveryChannelsChannelOutput

func (i GetDeliveryChannelsChannelArgs) ToGetDeliveryChannelsChannelOutput() GetDeliveryChannelsChannelOutput

func (GetDeliveryChannelsChannelArgs) ToGetDeliveryChannelsChannelOutputWithContext

func (i GetDeliveryChannelsChannelArgs) ToGetDeliveryChannelsChannelOutputWithContext(ctx context.Context) GetDeliveryChannelsChannelOutput

type GetDeliveryChannelsChannelArray

type GetDeliveryChannelsChannelArray []GetDeliveryChannelsChannelInput

func (GetDeliveryChannelsChannelArray) ElementType

func (GetDeliveryChannelsChannelArray) ToGetDeliveryChannelsChannelArrayOutput

func (i GetDeliveryChannelsChannelArray) ToGetDeliveryChannelsChannelArrayOutput() GetDeliveryChannelsChannelArrayOutput

func (GetDeliveryChannelsChannelArray) ToGetDeliveryChannelsChannelArrayOutputWithContext

func (i GetDeliveryChannelsChannelArray) ToGetDeliveryChannelsChannelArrayOutputWithContext(ctx context.Context) GetDeliveryChannelsChannelArrayOutput

type GetDeliveryChannelsChannelArrayInput

type GetDeliveryChannelsChannelArrayInput interface {
	pulumi.Input

	ToGetDeliveryChannelsChannelArrayOutput() GetDeliveryChannelsChannelArrayOutput
	ToGetDeliveryChannelsChannelArrayOutputWithContext(context.Context) GetDeliveryChannelsChannelArrayOutput
}

GetDeliveryChannelsChannelArrayInput is an input type that accepts GetDeliveryChannelsChannelArray and GetDeliveryChannelsChannelArrayOutput values. You can construct a concrete instance of `GetDeliveryChannelsChannelArrayInput` via:

GetDeliveryChannelsChannelArray{ GetDeliveryChannelsChannelArgs{...} }

type GetDeliveryChannelsChannelArrayOutput

type GetDeliveryChannelsChannelArrayOutput struct{ *pulumi.OutputState }

func (GetDeliveryChannelsChannelArrayOutput) ElementType

func (GetDeliveryChannelsChannelArrayOutput) Index

func (GetDeliveryChannelsChannelArrayOutput) ToGetDeliveryChannelsChannelArrayOutput

func (o GetDeliveryChannelsChannelArrayOutput) ToGetDeliveryChannelsChannelArrayOutput() GetDeliveryChannelsChannelArrayOutput

func (GetDeliveryChannelsChannelArrayOutput) ToGetDeliveryChannelsChannelArrayOutputWithContext

func (o GetDeliveryChannelsChannelArrayOutput) ToGetDeliveryChannelsChannelArrayOutputWithContext(ctx context.Context) GetDeliveryChannelsChannelArrayOutput

type GetDeliveryChannelsChannelInput

type GetDeliveryChannelsChannelInput interface {
	pulumi.Input

	ToGetDeliveryChannelsChannelOutput() GetDeliveryChannelsChannelOutput
	ToGetDeliveryChannelsChannelOutputWithContext(context.Context) GetDeliveryChannelsChannelOutput
}

GetDeliveryChannelsChannelInput is an input type that accepts GetDeliveryChannelsChannelArgs and GetDeliveryChannelsChannelOutput values. You can construct a concrete instance of `GetDeliveryChannelsChannelInput` via:

GetDeliveryChannelsChannelArgs{...}

type GetDeliveryChannelsChannelOutput

type GetDeliveryChannelsChannelOutput struct{ *pulumi.OutputState }

func (GetDeliveryChannelsChannelOutput) DeliveryChannelAssumeRoleArn

func (o GetDeliveryChannelsChannelOutput) DeliveryChannelAssumeRoleArn() pulumi.StringOutput

The Alibaba Cloud Resource Name (ARN) of the role assumed by delivery method.

func (GetDeliveryChannelsChannelOutput) DeliveryChannelCondition

func (o GetDeliveryChannelsChannelOutput) DeliveryChannelCondition() pulumi.StringOutput

The rule attached to the delivery method. This parameter is applicable only to delivery methods of the Message Service (MNS) type.

func (GetDeliveryChannelsChannelOutput) DeliveryChannelId

The ID of the delivery channel.

func (GetDeliveryChannelsChannelOutput) DeliveryChannelName

func (o GetDeliveryChannelsChannelOutput) DeliveryChannelName() pulumi.StringOutput

The name of the delivery channel.

func (GetDeliveryChannelsChannelOutput) DeliveryChannelTargetArn

func (o GetDeliveryChannelsChannelOutput) DeliveryChannelTargetArn() pulumi.StringOutput

The ARN of the delivery destination.

func (GetDeliveryChannelsChannelOutput) DeliveryChannelType

func (o GetDeliveryChannelsChannelOutput) DeliveryChannelType() pulumi.StringOutput

The type of the delivery method.

func (GetDeliveryChannelsChannelOutput) Description

The description of the delivery method.

func (GetDeliveryChannelsChannelOutput) ElementType

func (GetDeliveryChannelsChannelOutput) Id

The ID of the Config Delivery Channel.

func (GetDeliveryChannelsChannelOutput) Status

The status of the config delivery channel. Valid values `0`: Disable delivery channel, `1`: Enable delivery channel.

func (GetDeliveryChannelsChannelOutput) ToGetDeliveryChannelsChannelOutput

func (o GetDeliveryChannelsChannelOutput) ToGetDeliveryChannelsChannelOutput() GetDeliveryChannelsChannelOutput

func (GetDeliveryChannelsChannelOutput) ToGetDeliveryChannelsChannelOutputWithContext

func (o GetDeliveryChannelsChannelOutput) ToGetDeliveryChannelsChannelOutputWithContext(ctx context.Context) GetDeliveryChannelsChannelOutput

type GetDeliveryChannelsResult

type GetDeliveryChannelsResult struct {
	// A list of Config Delivery Channels. Each element contains the following attributes:
	Channels []GetDeliveryChannelsChannel `pulumi:"channels"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// A list of Config Delivery Channel IDs.
	Ids       []string `pulumi:"ids"`
	NameRegex *string  `pulumi:"nameRegex"`
	// A list of Config Delivery Channel names.
	Names      []string `pulumi:"names"`
	OutputFile *string  `pulumi:"outputFile"`
	// The status of the delivery method.
	Status *int `pulumi:"status"`
}

A collection of values returned by getDeliveryChannels.

func GetDeliveryChannels

func GetDeliveryChannels(ctx *pulumi.Context, args *GetDeliveryChannelsArgs, opts ...pulumi.InvokeOption) (*GetDeliveryChannelsResult, error)

This data source provides the Config Delivery Channels of the current Alibaba Cloud user.

> **NOTE:** Available in 1.99.0+.

> **NOTE:** The Cloud Config region only support `cn-shanghai` and `ap-northeast-1`.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v2/go/alicloud/cfg"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		opt0 := "tftest"
		example, err := cfg.GetDeliveryChannels(ctx, &cfg.GetDeliveryChannelsArgs{
			Ids: []string{
				"cdc-49a2ad756057********",
			},
			NameRegex: &opt0,
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("firstConfigDeliveryChannelId", example.Channels[0].Id)
		return nil
	})
}

```

type GetRulesArgs

type GetRulesArgs struct {
	// The state of the config rule, valid values: `ACTIVE`, `DELETING`, `DELETING_RESULTS`, `EVALUATING` and `INACTIVE`.
	ConfigRuleState *string `pulumi:"configRuleState"`
	// Default to `false`. Set it to `true` can output more details about resource attributes.
	EnableDetails *bool `pulumi:"enableDetails"`
	// A list of Config Rule IDs.
	Ids []string `pulumi:"ids"`
	// The ID of the member account to which the rule to be queried belongs. The default is empty. When `multiAccount` is set to true, this parameter is valid.
	MemberId *int `pulumi:"memberId"`
	// Trigger mechanism of rules. Valid values: `ConfigurationItemChangeNotification`,`OversizedConfigurationItemChangeNotification` and `ScheduledNotification`.
	MessageType *string `pulumi:"messageType"`
	// Whether the enterprise management account queries the rule details of member accounts.
	MultiAccount *bool `pulumi:"multiAccount"`
	// A regex string to filter results by rule name.
	NameRegex  *string `pulumi:"nameRegex"`
	OutputFile *string `pulumi:"outputFile"`
	// The risk level of Config Rule. Valid values: `1`: Critical ,`2`: Warning , `3`: Info.
	RiskLevel *int `pulumi:"riskLevel"`
}

A collection of arguments for invoking getRules.

type GetRulesResult

type GetRulesResult struct {
	ConfigRuleState *string `pulumi:"configRuleState"`
	EnableDetails   *bool   `pulumi:"enableDetails"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// A list of Config Rule IDs.
	Ids          []string `pulumi:"ids"`
	MemberId     *int     `pulumi:"memberId"`
	MessageType  *string  `pulumi:"messageType"`
	MultiAccount *bool    `pulumi:"multiAccount"`
	NameRegex    *string  `pulumi:"nameRegex"`
	// A list of Config Rule names.
	Names      []string `pulumi:"names"`
	OutputFile *string  `pulumi:"outputFile"`
	RiskLevel  *int     `pulumi:"riskLevel"`
	// A list of Config Rules. Each element contains the following attributes:
	Rules []GetRulesRule `pulumi:"rules"`
}

A collection of values returned by getRules.

func GetRules

func GetRules(ctx *pulumi.Context, args *GetRulesArgs, opts ...pulumi.InvokeOption) (*GetRulesResult, error)

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

> **NOTE:** Available in 1.99.0+.

> **NOTE:** The Cloud Config region only support `cn-shanghai` and `ap-northeast-1`.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v2/go/alicloud/cfg"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		opt0 := "tftest"
		example, err := cfg.GetRules(ctx, &cfg.GetRulesArgs{
			Ids: []string{
				"cr-ed4bad756057********",
			},
			NameRegex: &opt0,
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("firstConfigRuleId", example.Rules[0].Id)
		return nil
	})
}

```

type GetRulesRule

type GetRulesRule struct {
	AccountId int `pulumi:"accountId"`
	// The information about the compliance evaluations based on the rule.
	Compliances   []GetRulesRuleCompliance `pulumi:"compliances"`
	ConfigRuleArn string                   `pulumi:"configRuleArn"`
	ConfigRuleId  string                   `pulumi:"configRuleId"`
	// The state of the config rule, valid values: `ACTIVE`, `DELETING`, `DELETING_RESULTS`, `EVALUATING` and `INACTIVE`.
	ConfigRuleState string `pulumi:"configRuleState"`
	CreateTimestamp int    `pulumi:"createTimestamp"`
	Description     string `pulumi:"description"`
	// Event source of the Config Rule.
	EventSource string `pulumi:"eventSource"`
	// The ID of the Config Rule.
	// * `accountId`- The ID of the Alicloud account.
	// * `configRuleArn`- The ARN of the Config Rule.
	// * `configRuleId`- The ID of the Config Rule.
	// * `configRuleState`- The state of the Config Rule.
	// * `createTimestamp`- The timestamp of the Config Rule created.
	// * `description`- The description of the Config Rule.
	// * `inputParameters`- The input paramrters of the Config Rule.
	// * `modifiedTimestamp`- the timestamp of the Config Rule modified.
	// * `riskLevel`- The risk level of the Config Rule.
	// * `ruleName`- The name of the Config Rule.
	Id                string                 `pulumi:"id"`
	InputParameters   map[string]interface{} `pulumi:"inputParameters"`
	ModifiedTimestamp int                    `pulumi:"modifiedTimestamp"`
	// The risk level of Config Rule. Valid values: `1`: Critical ,`2`: Warning , `3`: Info.
	RiskLevel int    `pulumi:"riskLevel"`
	RuleName  string `pulumi:"ruleName"`
	// The ID of the resource to be evaluated.
	ScopeComplianceResourceId string `pulumi:"scopeComplianceResourceId"`
	// The types of the resources to be evaluated against the rule.
	ScopeComplianceResourceTypes []string `pulumi:"scopeComplianceResourceTypes"`
	// Rule trigger mechanism.
	SourceDetailMessageType string `pulumi:"sourceDetailMessageType"`
	SourceIdentifier        string `pulumi:"sourceIdentifier"`
	// Rule execution cycle.
	// * `sourceIdentifier`- The name of the custom rule or managed rule.
	// * `sourceOwner`- The source owner of the Config Rule.
	SourceMaximumExecutionFrequency string `pulumi:"sourceMaximumExecutionFrequency"`
	SourceOwner                     string `pulumi:"sourceOwner"`
}

type GetRulesRuleArgs

type GetRulesRuleArgs struct {
	AccountId pulumi.IntInput `pulumi:"accountId"`
	// The information about the compliance evaluations based on the rule.
	Compliances   GetRulesRuleComplianceArrayInput `pulumi:"compliances"`
	ConfigRuleArn pulumi.StringInput               `pulumi:"configRuleArn"`
	ConfigRuleId  pulumi.StringInput               `pulumi:"configRuleId"`
	// The state of the config rule, valid values: `ACTIVE`, `DELETING`, `DELETING_RESULTS`, `EVALUATING` and `INACTIVE`.
	ConfigRuleState pulumi.StringInput `pulumi:"configRuleState"`
	CreateTimestamp pulumi.IntInput    `pulumi:"createTimestamp"`
	Description     pulumi.StringInput `pulumi:"description"`
	// Event source of the Config Rule.
	EventSource pulumi.StringInput `pulumi:"eventSource"`
	// The ID of the Config Rule.
	// * `accountId`- The ID of the Alicloud account.
	// * `configRuleArn`- The ARN of the Config Rule.
	// * `configRuleId`- The ID of the Config Rule.
	// * `configRuleState`- The state of the Config Rule.
	// * `createTimestamp`- The timestamp of the Config Rule created.
	// * `description`- The description of the Config Rule.
	// * `inputParameters`- The input paramrters of the Config Rule.
	// * `modifiedTimestamp`- the timestamp of the Config Rule modified.
	// * `riskLevel`- The risk level of the Config Rule.
	// * `ruleName`- The name of the Config Rule.
	Id                pulumi.StringInput `pulumi:"id"`
	InputParameters   pulumi.MapInput    `pulumi:"inputParameters"`
	ModifiedTimestamp pulumi.IntInput    `pulumi:"modifiedTimestamp"`
	// The risk level of Config Rule. Valid values: `1`: Critical ,`2`: Warning , `3`: Info.
	RiskLevel pulumi.IntInput    `pulumi:"riskLevel"`
	RuleName  pulumi.StringInput `pulumi:"ruleName"`
	// The ID of the resource to be evaluated.
	ScopeComplianceResourceId pulumi.StringInput `pulumi:"scopeComplianceResourceId"`
	// The types of the resources to be evaluated against the rule.
	ScopeComplianceResourceTypes pulumi.StringArrayInput `pulumi:"scopeComplianceResourceTypes"`
	// Rule trigger mechanism.
	SourceDetailMessageType pulumi.StringInput `pulumi:"sourceDetailMessageType"`
	SourceIdentifier        pulumi.StringInput `pulumi:"sourceIdentifier"`
	// Rule execution cycle.
	// * `sourceIdentifier`- The name of the custom rule or managed rule.
	// * `sourceOwner`- The source owner of the Config Rule.
	SourceMaximumExecutionFrequency pulumi.StringInput `pulumi:"sourceMaximumExecutionFrequency"`
	SourceOwner                     pulumi.StringInput `pulumi:"sourceOwner"`
}

func (GetRulesRuleArgs) ElementType

func (GetRulesRuleArgs) ElementType() reflect.Type

func (GetRulesRuleArgs) ToGetRulesRuleOutput

func (i GetRulesRuleArgs) ToGetRulesRuleOutput() GetRulesRuleOutput

func (GetRulesRuleArgs) ToGetRulesRuleOutputWithContext

func (i GetRulesRuleArgs) ToGetRulesRuleOutputWithContext(ctx context.Context) GetRulesRuleOutput

type GetRulesRuleArray

type GetRulesRuleArray []GetRulesRuleInput

func (GetRulesRuleArray) ElementType

func (GetRulesRuleArray) ElementType() reflect.Type

func (GetRulesRuleArray) ToGetRulesRuleArrayOutput

func (i GetRulesRuleArray) ToGetRulesRuleArrayOutput() GetRulesRuleArrayOutput

func (GetRulesRuleArray) ToGetRulesRuleArrayOutputWithContext

func (i GetRulesRuleArray) ToGetRulesRuleArrayOutputWithContext(ctx context.Context) GetRulesRuleArrayOutput

type GetRulesRuleArrayInput

type GetRulesRuleArrayInput interface {
	pulumi.Input

	ToGetRulesRuleArrayOutput() GetRulesRuleArrayOutput
	ToGetRulesRuleArrayOutputWithContext(context.Context) GetRulesRuleArrayOutput
}

GetRulesRuleArrayInput is an input type that accepts GetRulesRuleArray and GetRulesRuleArrayOutput values. You can construct a concrete instance of `GetRulesRuleArrayInput` via:

GetRulesRuleArray{ GetRulesRuleArgs{...} }

type GetRulesRuleArrayOutput

type GetRulesRuleArrayOutput struct{ *pulumi.OutputState }

func (GetRulesRuleArrayOutput) ElementType

func (GetRulesRuleArrayOutput) ElementType() reflect.Type

func (GetRulesRuleArrayOutput) Index

func (GetRulesRuleArrayOutput) ToGetRulesRuleArrayOutput

func (o GetRulesRuleArrayOutput) ToGetRulesRuleArrayOutput() GetRulesRuleArrayOutput

func (GetRulesRuleArrayOutput) ToGetRulesRuleArrayOutputWithContext

func (o GetRulesRuleArrayOutput) ToGetRulesRuleArrayOutputWithContext(ctx context.Context) GetRulesRuleArrayOutput

type GetRulesRuleCompliance added in v2.26.0

type GetRulesRuleCompliance struct {
	// The compliance evaluation result of the target resources.
	ComplianceType string `pulumi:"complianceType"`
	// The number of resources with the specified compliance evaluation result.
	Count int `pulumi:"count"`
}

type GetRulesRuleComplianceArgs added in v2.26.0

type GetRulesRuleComplianceArgs struct {
	// The compliance evaluation result of the target resources.
	ComplianceType pulumi.StringInput `pulumi:"complianceType"`
	// The number of resources with the specified compliance evaluation result.
	Count pulumi.IntInput `pulumi:"count"`
}

func (GetRulesRuleComplianceArgs) ElementType added in v2.26.0

func (GetRulesRuleComplianceArgs) ElementType() reflect.Type

func (GetRulesRuleComplianceArgs) ToGetRulesRuleComplianceOutput added in v2.26.0

func (i GetRulesRuleComplianceArgs) ToGetRulesRuleComplianceOutput() GetRulesRuleComplianceOutput

func (GetRulesRuleComplianceArgs) ToGetRulesRuleComplianceOutputWithContext added in v2.26.0

func (i GetRulesRuleComplianceArgs) ToGetRulesRuleComplianceOutputWithContext(ctx context.Context) GetRulesRuleComplianceOutput

type GetRulesRuleComplianceArray added in v2.26.0

type GetRulesRuleComplianceArray []GetRulesRuleComplianceInput

func (GetRulesRuleComplianceArray) ElementType added in v2.26.0

func (GetRulesRuleComplianceArray) ToGetRulesRuleComplianceArrayOutput added in v2.26.0

func (i GetRulesRuleComplianceArray) ToGetRulesRuleComplianceArrayOutput() GetRulesRuleComplianceArrayOutput

func (GetRulesRuleComplianceArray) ToGetRulesRuleComplianceArrayOutputWithContext added in v2.26.0

func (i GetRulesRuleComplianceArray) ToGetRulesRuleComplianceArrayOutputWithContext(ctx context.Context) GetRulesRuleComplianceArrayOutput

type GetRulesRuleComplianceArrayInput added in v2.26.0

type GetRulesRuleComplianceArrayInput interface {
	pulumi.Input

	ToGetRulesRuleComplianceArrayOutput() GetRulesRuleComplianceArrayOutput
	ToGetRulesRuleComplianceArrayOutputWithContext(context.Context) GetRulesRuleComplianceArrayOutput
}

GetRulesRuleComplianceArrayInput is an input type that accepts GetRulesRuleComplianceArray and GetRulesRuleComplianceArrayOutput values. You can construct a concrete instance of `GetRulesRuleComplianceArrayInput` via:

GetRulesRuleComplianceArray{ GetRulesRuleComplianceArgs{...} }

type GetRulesRuleComplianceArrayOutput added in v2.26.0

type GetRulesRuleComplianceArrayOutput struct{ *pulumi.OutputState }

func (GetRulesRuleComplianceArrayOutput) ElementType added in v2.26.0

func (GetRulesRuleComplianceArrayOutput) Index added in v2.26.0

func (GetRulesRuleComplianceArrayOutput) ToGetRulesRuleComplianceArrayOutput added in v2.26.0

func (o GetRulesRuleComplianceArrayOutput) ToGetRulesRuleComplianceArrayOutput() GetRulesRuleComplianceArrayOutput

func (GetRulesRuleComplianceArrayOutput) ToGetRulesRuleComplianceArrayOutputWithContext added in v2.26.0

func (o GetRulesRuleComplianceArrayOutput) ToGetRulesRuleComplianceArrayOutputWithContext(ctx context.Context) GetRulesRuleComplianceArrayOutput

type GetRulesRuleComplianceInput added in v2.26.0

type GetRulesRuleComplianceInput interface {
	pulumi.Input

	ToGetRulesRuleComplianceOutput() GetRulesRuleComplianceOutput
	ToGetRulesRuleComplianceOutputWithContext(context.Context) GetRulesRuleComplianceOutput
}

GetRulesRuleComplianceInput is an input type that accepts GetRulesRuleComplianceArgs and GetRulesRuleComplianceOutput values. You can construct a concrete instance of `GetRulesRuleComplianceInput` via:

GetRulesRuleComplianceArgs{...}

type GetRulesRuleComplianceOutput added in v2.26.0

type GetRulesRuleComplianceOutput struct{ *pulumi.OutputState }

func (GetRulesRuleComplianceOutput) ComplianceType added in v2.26.0

The compliance evaluation result of the target resources.

func (GetRulesRuleComplianceOutput) Count added in v2.26.0

The number of resources with the specified compliance evaluation result.

func (GetRulesRuleComplianceOutput) ElementType added in v2.26.0

func (GetRulesRuleComplianceOutput) ToGetRulesRuleComplianceOutput added in v2.26.0

func (o GetRulesRuleComplianceOutput) ToGetRulesRuleComplianceOutput() GetRulesRuleComplianceOutput

func (GetRulesRuleComplianceOutput) ToGetRulesRuleComplianceOutputWithContext added in v2.26.0

func (o GetRulesRuleComplianceOutput) ToGetRulesRuleComplianceOutputWithContext(ctx context.Context) GetRulesRuleComplianceOutput

type GetRulesRuleInput

type GetRulesRuleInput interface {
	pulumi.Input

	ToGetRulesRuleOutput() GetRulesRuleOutput
	ToGetRulesRuleOutputWithContext(context.Context) GetRulesRuleOutput
}

GetRulesRuleInput is an input type that accepts GetRulesRuleArgs and GetRulesRuleOutput values. You can construct a concrete instance of `GetRulesRuleInput` via:

GetRulesRuleArgs{...}

type GetRulesRuleOutput

type GetRulesRuleOutput struct{ *pulumi.OutputState }

func (GetRulesRuleOutput) AccountId

func (o GetRulesRuleOutput) AccountId() pulumi.IntOutput

func (GetRulesRuleOutput) Compliances added in v2.26.0

The information about the compliance evaluations based on the rule.

func (GetRulesRuleOutput) ConfigRuleArn

func (o GetRulesRuleOutput) ConfigRuleArn() pulumi.StringOutput

func (GetRulesRuleOutput) ConfigRuleId

func (o GetRulesRuleOutput) ConfigRuleId() pulumi.StringOutput

func (GetRulesRuleOutput) ConfigRuleState

func (o GetRulesRuleOutput) ConfigRuleState() pulumi.StringOutput

The state of the config rule, valid values: `ACTIVE`, `DELETING`, `DELETING_RESULTS`, `EVALUATING` and `INACTIVE`.

func (GetRulesRuleOutput) CreateTimestamp

func (o GetRulesRuleOutput) CreateTimestamp() pulumi.IntOutput

func (GetRulesRuleOutput) Description

func (o GetRulesRuleOutput) Description() pulumi.StringOutput

func (GetRulesRuleOutput) ElementType

func (GetRulesRuleOutput) ElementType() reflect.Type

func (GetRulesRuleOutput) EventSource added in v2.26.0

func (o GetRulesRuleOutput) EventSource() pulumi.StringOutput

Event source of the Config Rule.

func (GetRulesRuleOutput) Id

The ID of the Config Rule. * `accountId`- The ID of the Alicloud account. * `configRuleArn`- The ARN of the Config Rule. * `configRuleId`- The ID of the Config Rule. * `configRuleState`- The state of the Config Rule. * `createTimestamp`- The timestamp of the Config Rule created. * `description`- The description of the Config Rule. * `inputParameters`- The input paramrters of the Config Rule. * `modifiedTimestamp`- the timestamp of the Config Rule modified. * `riskLevel`- The risk level of the Config Rule. * `ruleName`- The name of the Config Rule.

func (GetRulesRuleOutput) InputParameters

func (o GetRulesRuleOutput) InputParameters() pulumi.MapOutput

func (GetRulesRuleOutput) ModifiedTimestamp

func (o GetRulesRuleOutput) ModifiedTimestamp() pulumi.IntOutput

func (GetRulesRuleOutput) RiskLevel

func (o GetRulesRuleOutput) RiskLevel() pulumi.IntOutput

The risk level of Config Rule. Valid values: `1`: Critical ,`2`: Warning , `3`: Info.

func (GetRulesRuleOutput) RuleName

func (o GetRulesRuleOutput) RuleName() pulumi.StringOutput

func (GetRulesRuleOutput) ScopeComplianceResourceId added in v2.26.0

func (o GetRulesRuleOutput) ScopeComplianceResourceId() pulumi.StringOutput

The ID of the resource to be evaluated.

func (GetRulesRuleOutput) ScopeComplianceResourceTypes added in v2.26.0

func (o GetRulesRuleOutput) ScopeComplianceResourceTypes() pulumi.StringArrayOutput

The types of the resources to be evaluated against the rule.

func (GetRulesRuleOutput) SourceDetailMessageType added in v2.26.0

func (o GetRulesRuleOutput) SourceDetailMessageType() pulumi.StringOutput

Rule trigger mechanism.

func (GetRulesRuleOutput) SourceIdentifier

func (o GetRulesRuleOutput) SourceIdentifier() pulumi.StringOutput

func (GetRulesRuleOutput) SourceMaximumExecutionFrequency added in v2.26.0

func (o GetRulesRuleOutput) SourceMaximumExecutionFrequency() pulumi.StringOutput

Rule execution cycle. * `sourceIdentifier`- The name of the custom rule or managed rule. * `sourceOwner`- The source owner of the Config Rule.

func (GetRulesRuleOutput) SourceOwner

func (o GetRulesRuleOutput) SourceOwner() pulumi.StringOutput

func (GetRulesRuleOutput) ToGetRulesRuleOutput

func (o GetRulesRuleOutput) ToGetRulesRuleOutput() GetRulesRuleOutput

func (GetRulesRuleOutput) ToGetRulesRuleOutputWithContext

func (o GetRulesRuleOutput) ToGetRulesRuleOutputWithContext(ctx context.Context) GetRulesRuleOutput

type Rule

type Rule struct {
	pulumi.CustomResourceState

	// The description of the Config Rule.
	Description pulumi.StringPtrOutput `pulumi:"description"`
	// Threshold value for managed rule triggering.
	InputParameters pulumi.MapOutput `pulumi:"inputParameters"`
	// The ID of the member account to which the rule to be created or modified belongs. The default is empty. When `multiAccount` is set to true, this parameter is valid.
	MemberId pulumi.IntPtrOutput `pulumi:"memberId"`
	// Whether the enterprise management account is a member account to create or modify rules. Valid values: `true`: Enterprise management accounts create or modify rules for all member accounts in the resource directory. `false`:The enterprise management account creates or modifies rules for this account. Default value is `false`.
	MultiAccount pulumi.BoolPtrOutput `pulumi:"multiAccount"`
	// The risk level of the Config Rule. Valid values: `1`: Critical ,`2`: Warning , `3`: Info.
	RiskLevel pulumi.IntOutput `pulumi:"riskLevel"`
	// The name of the Config Rule.
	RuleName pulumi.StringOutput `pulumi:"ruleName"`
	// The ID of the resource to be evaluated. If not set, all resources are evaluated.
	ScopeComplianceResourceId pulumi.StringPtrOutput `pulumi:"scopeComplianceResourceId"`
	// Resource types to be evaluated. [Alibaba Cloud services that support Cloud Config.](https://www.alibabacloud.com/help/en/doc-detail/127411.htm)
	ScopeComplianceResourceTypes pulumi.StringArrayOutput `pulumi:"scopeComplianceResourceTypes"`
	// Trigger mechanism of rules. Valid values: `ConfigurationItemChangeNotification`,`OversizedConfigurationItemChangeNotification` and `ScheduledNotification`.
	SourceDetailMessageType pulumi.StringOutput `pulumi:"sourceDetailMessageType"`
	// The name of the custom rule or managed rules. Using managed rules, refer to [List of Managed rules.](https://www.alibabacloud.com/help/en/doc-detail/127404.htm)
	SourceIdentifier pulumi.StringOutput `pulumi:"sourceIdentifier"`
	// Rule execution cycle. Valid values: `One_Hour`, `Three_Hours`, `Six_Hours`, `Twelve_Hours` and `TwentyFour_Hours`.
	SourceMaximumExecutionFrequency pulumi.StringPtrOutput `pulumi:"sourceMaximumExecutionFrequency"`
	// The source owner of the Config Rule. Values: `CUSTOM_FC`: Custom rules, `ALIYUN`: Trusteeship rules.
	SourceOwner pulumi.StringOutput `pulumi:"sourceOwner"`
}

Provides a a Alicloud Config Rule resource. Cloud Config checks the validity of resources based on rules. You can create rules to evaluate resources as needed. For information about Alicloud Config Rule and how to use it, see [What is Alicloud Config Rule](https://www.alibabacloud.com/help/en/doc-detail/127388.htm).

> **NOTE:** Available in v1.99.0+.

> **NOTE:** The Cloud Config region only support `cn-shanghai` and `ap-northeast-1`.

> **NOTE:** If you use custom rules, you need to create your own rule functions in advance. Please refer to the link for [Create a custom rule.](https://www.alibabacloud.com/help/en/doc-detail/127405.htm)

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v2/go/alicloud/cfg"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := cfg.NewRule(ctx, "example", &cfg.RuleArgs{
			Description: pulumi.String("ecs instances in vpc"),
			InputParameters: pulumi.StringMap{
				"vpcIds": pulumi.String("vpc-uf6gksw4ctjd******"),
			},
			RiskLevel:                 pulumi.Int(1),
			RuleName:                  pulumi.String("instances-in-vpc"),
			ScopeComplianceResourceId: pulumi.String("i-uf6j6rl141ps******"),
			ScopeComplianceResourceTypes: pulumi.StringArray{
				pulumi.String("ACS::ECS::Instance"),
			},
			SourceDetailMessageType:         pulumi.String("ConfigurationItemChangeNotification"),
			SourceIdentifier:                pulumi.String("ecs-instances-in-vpc"),
			SourceMaximumExecutionFrequency: pulumi.String("Twelve_Hours"),
			SourceOwner:                     pulumi.String("ALIYUN"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Alicloud Config Rule can be imported using the id, e.g.

```sh

$ pulumi import alicloud:cfg/rule:Rule this cr-ed4bad756057********

```

func GetRule

func GetRule(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *RuleState, opts ...pulumi.ResourceOption) (*Rule, error)

GetRule gets an existing Rule resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewRule

func NewRule(ctx *pulumi.Context,
	name string, args *RuleArgs, opts ...pulumi.ResourceOption) (*Rule, error)

NewRule registers a new resource with the given unique name, arguments, and options.

func (*Rule) ElementType added in v2.25.1

func (*Rule) ElementType() reflect.Type

func (*Rule) ToRuleOutput added in v2.25.1

func (i *Rule) ToRuleOutput() RuleOutput

func (*Rule) ToRuleOutputWithContext added in v2.25.1

func (i *Rule) ToRuleOutputWithContext(ctx context.Context) RuleOutput

func (*Rule) ToRulePtrOutput added in v2.35.1

func (i *Rule) ToRulePtrOutput() RulePtrOutput

func (*Rule) ToRulePtrOutputWithContext added in v2.35.1

func (i *Rule) ToRulePtrOutputWithContext(ctx context.Context) RulePtrOutput

type RuleArgs

type RuleArgs struct {
	// The description of the Config Rule.
	Description pulumi.StringPtrInput
	// Threshold value for managed rule triggering.
	InputParameters pulumi.MapInput
	// The ID of the member account to which the rule to be created or modified belongs. The default is empty. When `multiAccount` is set to true, this parameter is valid.
	MemberId pulumi.IntPtrInput
	// Whether the enterprise management account is a member account to create or modify rules. Valid values: `true`: Enterprise management accounts create or modify rules for all member accounts in the resource directory. `false`:The enterprise management account creates or modifies rules for this account. Default value is `false`.
	MultiAccount pulumi.BoolPtrInput
	// The risk level of the Config Rule. Valid values: `1`: Critical ,`2`: Warning , `3`: Info.
	RiskLevel pulumi.IntInput
	// The name of the Config Rule.
	RuleName pulumi.StringInput
	// The ID of the resource to be evaluated. If not set, all resources are evaluated.
	ScopeComplianceResourceId pulumi.StringPtrInput
	// Resource types to be evaluated. [Alibaba Cloud services that support Cloud Config.](https://www.alibabacloud.com/help/en/doc-detail/127411.htm)
	ScopeComplianceResourceTypes pulumi.StringArrayInput
	// Trigger mechanism of rules. Valid values: `ConfigurationItemChangeNotification`,`OversizedConfigurationItemChangeNotification` and `ScheduledNotification`.
	SourceDetailMessageType pulumi.StringInput
	// The name of the custom rule or managed rules. Using managed rules, refer to [List of Managed rules.](https://www.alibabacloud.com/help/en/doc-detail/127404.htm)
	SourceIdentifier pulumi.StringInput
	// Rule execution cycle. Valid values: `One_Hour`, `Three_Hours`, `Six_Hours`, `Twelve_Hours` and `TwentyFour_Hours`.
	SourceMaximumExecutionFrequency pulumi.StringPtrInput
	// The source owner of the Config Rule. Values: `CUSTOM_FC`: Custom rules, `ALIYUN`: Trusteeship rules.
	SourceOwner pulumi.StringInput
}

The set of arguments for constructing a Rule resource.

func (RuleArgs) ElementType

func (RuleArgs) ElementType() reflect.Type

type RuleArray added in v2.35.1

type RuleArray []RuleInput

func (RuleArray) ElementType added in v2.35.1

func (RuleArray) ElementType() reflect.Type

func (RuleArray) ToRuleArrayOutput added in v2.35.1

func (i RuleArray) ToRuleArrayOutput() RuleArrayOutput

func (RuleArray) ToRuleArrayOutputWithContext added in v2.35.1

func (i RuleArray) ToRuleArrayOutputWithContext(ctx context.Context) RuleArrayOutput

type RuleArrayInput added in v2.35.1

type RuleArrayInput interface {
	pulumi.Input

	ToRuleArrayOutput() RuleArrayOutput
	ToRuleArrayOutputWithContext(context.Context) RuleArrayOutput
}

RuleArrayInput is an input type that accepts RuleArray and RuleArrayOutput values. You can construct a concrete instance of `RuleArrayInput` via:

RuleArray{ RuleArgs{...} }

type RuleArrayOutput added in v2.35.1

type RuleArrayOutput struct{ *pulumi.OutputState }

func (RuleArrayOutput) ElementType added in v2.35.1

func (RuleArrayOutput) ElementType() reflect.Type

func (RuleArrayOutput) Index added in v2.35.1

func (RuleArrayOutput) ToRuleArrayOutput added in v2.35.1

func (o RuleArrayOutput) ToRuleArrayOutput() RuleArrayOutput

func (RuleArrayOutput) ToRuleArrayOutputWithContext added in v2.35.1

func (o RuleArrayOutput) ToRuleArrayOutputWithContext(ctx context.Context) RuleArrayOutput

type RuleInput added in v2.25.1

type RuleInput interface {
	pulumi.Input

	ToRuleOutput() RuleOutput
	ToRuleOutputWithContext(ctx context.Context) RuleOutput
}

type RuleMap added in v2.35.1

type RuleMap map[string]RuleInput

func (RuleMap) ElementType added in v2.35.1

func (RuleMap) ElementType() reflect.Type

func (RuleMap) ToRuleMapOutput added in v2.35.1

func (i RuleMap) ToRuleMapOutput() RuleMapOutput

func (RuleMap) ToRuleMapOutputWithContext added in v2.35.1

func (i RuleMap) ToRuleMapOutputWithContext(ctx context.Context) RuleMapOutput

type RuleMapInput added in v2.35.1

type RuleMapInput interface {
	pulumi.Input

	ToRuleMapOutput() RuleMapOutput
	ToRuleMapOutputWithContext(context.Context) RuleMapOutput
}

RuleMapInput is an input type that accepts RuleMap and RuleMapOutput values. You can construct a concrete instance of `RuleMapInput` via:

RuleMap{ "key": RuleArgs{...} }

type RuleMapOutput added in v2.35.1

type RuleMapOutput struct{ *pulumi.OutputState }

func (RuleMapOutput) ElementType added in v2.35.1

func (RuleMapOutput) ElementType() reflect.Type

func (RuleMapOutput) MapIndex added in v2.35.1

func (RuleMapOutput) ToRuleMapOutput added in v2.35.1

func (o RuleMapOutput) ToRuleMapOutput() RuleMapOutput

func (RuleMapOutput) ToRuleMapOutputWithContext added in v2.35.1

func (o RuleMapOutput) ToRuleMapOutputWithContext(ctx context.Context) RuleMapOutput

type RuleOutput added in v2.25.1

type RuleOutput struct {
	*pulumi.OutputState
}

func (RuleOutput) ElementType added in v2.25.1

func (RuleOutput) ElementType() reflect.Type

func (RuleOutput) ToRuleOutput added in v2.25.1

func (o RuleOutput) ToRuleOutput() RuleOutput

func (RuleOutput) ToRuleOutputWithContext added in v2.25.1

func (o RuleOutput) ToRuleOutputWithContext(ctx context.Context) RuleOutput

func (RuleOutput) ToRulePtrOutput added in v2.35.1

func (o RuleOutput) ToRulePtrOutput() RulePtrOutput

func (RuleOutput) ToRulePtrOutputWithContext added in v2.35.1

func (o RuleOutput) ToRulePtrOutputWithContext(ctx context.Context) RulePtrOutput

type RulePtrInput added in v2.35.1

type RulePtrInput interface {
	pulumi.Input

	ToRulePtrOutput() RulePtrOutput
	ToRulePtrOutputWithContext(ctx context.Context) RulePtrOutput
}

type RulePtrOutput added in v2.35.1

type RulePtrOutput struct {
	*pulumi.OutputState
}

func (RulePtrOutput) ElementType added in v2.35.1

func (RulePtrOutput) ElementType() reflect.Type

func (RulePtrOutput) ToRulePtrOutput added in v2.35.1

func (o RulePtrOutput) ToRulePtrOutput() RulePtrOutput

func (RulePtrOutput) ToRulePtrOutputWithContext added in v2.35.1

func (o RulePtrOutput) ToRulePtrOutputWithContext(ctx context.Context) RulePtrOutput

type RuleState

type RuleState struct {
	// The description of the Config Rule.
	Description pulumi.StringPtrInput
	// Threshold value for managed rule triggering.
	InputParameters pulumi.MapInput
	// The ID of the member account to which the rule to be created or modified belongs. The default is empty. When `multiAccount` is set to true, this parameter is valid.
	MemberId pulumi.IntPtrInput
	// Whether the enterprise management account is a member account to create or modify rules. Valid values: `true`: Enterprise management accounts create or modify rules for all member accounts in the resource directory. `false`:The enterprise management account creates or modifies rules for this account. Default value is `false`.
	MultiAccount pulumi.BoolPtrInput
	// The risk level of the Config Rule. Valid values: `1`: Critical ,`2`: Warning , `3`: Info.
	RiskLevel pulumi.IntPtrInput
	// The name of the Config Rule.
	RuleName pulumi.StringPtrInput
	// The ID of the resource to be evaluated. If not set, all resources are evaluated.
	ScopeComplianceResourceId pulumi.StringPtrInput
	// Resource types to be evaluated. [Alibaba Cloud services that support Cloud Config.](https://www.alibabacloud.com/help/en/doc-detail/127411.htm)
	ScopeComplianceResourceTypes pulumi.StringArrayInput
	// Trigger mechanism of rules. Valid values: `ConfigurationItemChangeNotification`,`OversizedConfigurationItemChangeNotification` and `ScheduledNotification`.
	SourceDetailMessageType pulumi.StringPtrInput
	// The name of the custom rule or managed rules. Using managed rules, refer to [List of Managed rules.](https://www.alibabacloud.com/help/en/doc-detail/127404.htm)
	SourceIdentifier pulumi.StringPtrInput
	// Rule execution cycle. Valid values: `One_Hour`, `Three_Hours`, `Six_Hours`, `Twelve_Hours` and `TwentyFour_Hours`.
	SourceMaximumExecutionFrequency pulumi.StringPtrInput
	// The source owner of the Config Rule. Values: `CUSTOM_FC`: Custom rules, `ALIYUN`: Trusteeship rules.
	SourceOwner pulumi.StringPtrInput
}

func (RuleState) ElementType

func (RuleState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL