Delivery

class Delivery : KotlinCustomResource

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>

Properties

Link copied to clipboard

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

Link copied to clipboard

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

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

The name of the delivery method.

Link copied to clipboard

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

Link copied to clipboard

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>?

The description of the delivery method.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard

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

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

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val status: Output<Int>

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.

Link copied to clipboard
val urn: Output<String>