DeliveryArgs

data class DeliveryArgs(val configurationItemChangeNotification: Output<Boolean>? = null, val configurationSnapshot: Output<Boolean>? = null, val deliveryChannelCondition: Output<String>? = null, val deliveryChannelName: Output<String>? = null, val deliveryChannelTargetArn: Output<String>? = null, val deliveryChannelType: Output<String>? = null, val description: Output<String>? = null, val nonCompliantNotification: Output<Boolean>? = null, val oversizedDataOssTargetArn: Output<String>? = null, val status: Output<Int>? = null) : ConvertibleToJava<DeliveryArgs>

Provides a Cloud Config Delivery resource. For information about Cloud Config Delivery and how to use it, see What is Delivery.

NOTE: Available since v1.171.0.

Example Usage

Basic Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.AlicloudFunctions;
import com.pulumi.alicloud.inputs.GetRegionsArgs;
import com.pulumi.alicloud.log.Project;
import com.pulumi.alicloud.log.Store;
import com.pulumi.alicloud.log.StoreArgs;
import com.pulumi.alicloud.cfg.Delivery;
import com.pulumi.alicloud.cfg.DeliveryArgs;
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 config = ctx.config();
final var name = config.get("name").orElse("tf-example-sls");
final var thisAccount = AlicloudFunctions.getAccount();
final var thisRegions = AlicloudFunctions.getRegions(GetRegionsArgs.builder()
.current(true)
.build());
var defaultProject = new Project("defaultProject");
var defaultStore = new Store("defaultStore", StoreArgs.builder()
.project(defaultProject.name())
.build());
var defaultDelivery = new Delivery("defaultDelivery", DeliveryArgs.builder()
.configurationItemChangeNotification(true)
.nonCompliantNotification(true)
.deliveryChannelName(name)
.deliveryChannelTargetArn(Output.tuple(defaultProject.name(), defaultStore.name()).applyValue(values -> {
var defaultProjectName = values.t1;
var defaultStoreName = values.t2;
return String.format("acs:log:%s:%s:project/%s/logstore/%s", thisRegions.applyValue(getRegionsResult -> getRegionsResult.ids()[0]),thisAccount.applyValue(getAccountResult -> getAccountResult.id()),defaultProjectName,defaultStoreName);
}))
.deliveryChannelType("SLS")
.description(name)
.build());
}
}

Import

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

$ pulumi import alicloud:cfg/delivery:Delivery example <id>

Constructors

Link copied to clipboard
fun DeliveryArgs(configurationItemChangeNotification: Output<Boolean>? = null, configurationSnapshot: Output<Boolean>? = null, deliveryChannelCondition: Output<String>? = null, deliveryChannelName: Output<String>? = null, deliveryChannelTargetArn: Output<String>? = null, deliveryChannelType: Output<String>? = null, description: Output<String>? = null, nonCompliantNotification: Output<Boolean>? = null, oversizedDataOssTargetArn: Output<String>? = null, status: Output<Int>? = null)

Functions

Link copied to clipboard
open override fun toJava(): DeliveryArgs

Properties

Link copied to clipboard

Open or close delivery configuration change history. true: open, false: close.

Link copied to clipboard
val configurationSnapshot: Output<Boolean>? = null

Open or close timed snapshot of shipping resources. NOTE: The attribute is valid when the attribute delivery_channel_type is OSS.

Link copied to clipboard
val deliveryChannelCondition: Output<String>? = null

The rule attached to the delivery method. Please refer to api CreateConfigDeliveryChannel for example format. NOTE: The attribute is valid when the attribute delivery_channel_type is MNS.

Link copied to clipboard
val deliveryChannelName: Output<String>? = null

The name of the delivery method.

Link copied to clipboard
val deliveryChannelTargetArn: Output<String>? = null

The ARN of the delivery destination. The value must be in one of the following formats:

Link copied to clipboard
val deliveryChannelType: Output<String>? = null

The type of the delivery method. Valid values: OSS: Object Storage, MNS: Message Service, SLS: Log Service.

Link copied to clipboard
val description: Output<String>? = null

The description of the delivery method.

Link copied to clipboard
val nonCompliantNotification: Output<Boolean>? = null

Open or close non-compliance events of delivery resources. NOTE: The attribute is valid when the attribute delivery_channel_type is SLS or MNS.

Link copied to clipboard
val oversizedDataOssTargetArn: Output<String>? = null

The oss ARN of the delivery channel when the value data oversized limit.

Link copied to clipboard
val status: Output<Int>? = null

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.