All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.alicloud.cfg.AggregateDelivery Maven / Gradle / Ivy

There is a newer version: 3.63.0-alpha.1727424957
Show newest version
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.alicloud.cfg;

import com.pulumi.alicloud.Utilities;
import com.pulumi.alicloud.cfg.AggregateDeliveryArgs;
import com.pulumi.alicloud.cfg.inputs.AggregateDeliveryState;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Export;
import com.pulumi.core.annotations.ResourceType;
import com.pulumi.core.internal.Codegen;
import java.lang.Boolean;
import java.lang.Integer;
import java.lang.String;
import java.util.Optional;
import javax.annotation.Nullable;

/**
 * Provides a Cloud Config Aggregate Delivery resource.
 * 
 * For information about Cloud Config Aggregate Delivery and how to use it, see [What is Aggregate Delivery](https://www.alibabacloud.com/help/en/cloud-config/latest/api-config-2020-09-07-createaggregateconfigdeliverychannel).
 * 
 * > **NOTE:** Available since v1.172.0.
 * 
 * ## Import
 * 
 * Cloud Config Aggregate Delivery can be imported using the id, e.g.
 * 
 * ```sh
 * $ pulumi import alicloud:cfg/aggregateDelivery:AggregateDelivery example <aggregator_id>:<delivery_channel_id>
 * ```
 * 
 */
@ResourceType(type="alicloud:cfg/aggregateDelivery:AggregateDelivery")
public class AggregateDelivery extends com.pulumi.resources.CustomResource {
    /**
     * The ID of the Aggregator.
     * 
     */
    @Export(name="aggregatorId", refs={String.class}, tree="[0]")
    private Output aggregatorId;

    /**
     * @return The ID of the Aggregator.
     * 
     */
    public Output aggregatorId() {
        return this.aggregatorId;
    }
    /**
     * Open or close delivery configuration change history.
     * 
     */
    @Export(name="configurationItemChangeNotification", refs={Boolean.class}, tree="[0]")
    private Output configurationItemChangeNotification;

    /**
     * @return Open or close delivery configuration change history.
     * 
     */
    public Output configurationItemChangeNotification() {
        return this.configurationItemChangeNotification;
    }
    /**
     * Open or close timed snapshot of shipping resources. **NOTE:** The attribute is valid when the attribute `delivery_channel_type` is `OSS`.
     * 
     */
    @Export(name="configurationSnapshot", refs={Boolean.class}, tree="[0]")
    private Output configurationSnapshot;

    /**
     * @return Open or close timed snapshot of shipping resources. **NOTE:** The attribute is valid when the attribute `delivery_channel_type` is `OSS`.
     * 
     */
    public Output configurationSnapshot() {
        return this.configurationSnapshot;
    }
    /**
     * The rule attached to the delivery method. Please refer to api [CreateConfigDeliveryChannel](https://help.aliyun.com/document_detail/429798.html) for example format. **NOTE:** The attribute is valid when the attribute `delivery_channel_type` is `MNS`.
     * 
     */
    @Export(name="deliveryChannelCondition", refs={String.class}, tree="[0]")
    private Output deliveryChannelCondition;

    /**
     * @return The rule attached to the delivery method. Please refer to api [CreateConfigDeliveryChannel](https://help.aliyun.com/document_detail/429798.html) for example format. **NOTE:** The attribute is valid when the attribute `delivery_channel_type` is `MNS`.
     * 
     */
    public Output> deliveryChannelCondition() {
        return Codegen.optional(this.deliveryChannelCondition);
    }
    /**
     * The ID of the delivery method.
     * 
     */
    @Export(name="deliveryChannelId", refs={String.class}, tree="[0]")
    private Output deliveryChannelId;

    /**
     * @return The ID of the delivery method.
     * 
     */
    public Output deliveryChannelId() {
        return this.deliveryChannelId;
    }
    /**
     * The name of the delivery method.
     * 
     */
    @Export(name="deliveryChannelName", refs={String.class}, tree="[0]")
    private Output deliveryChannelName;

    /**
     * @return The name of the delivery method.
     * 
     */
    public Output> deliveryChannelName() {
        return Codegen.optional(this.deliveryChannelName);
    }
    /**
     * The ARN of the delivery destination. 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.
     * 
     */
    @Export(name="deliveryChannelTargetArn", refs={String.class}, tree="[0]")
    private Output deliveryChannelTargetArn;

    /**
     * @return The ARN of the delivery destination. 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.
     * 
     */
    public Output deliveryChannelTargetArn() {
        return this.deliveryChannelTargetArn;
    }
    /**
     * The type of the delivery method. Valid values: `OSS`: Object Storage, `MNS`: Message Service, `SLS`: Log Service.
     * 
     */
    @Export(name="deliveryChannelType", refs={String.class}, tree="[0]")
    private Output deliveryChannelType;

    /**
     * @return The type of the delivery method. Valid values: `OSS`: Object Storage, `MNS`: Message Service, `SLS`: Log Service.
     * 
     */
    public Output deliveryChannelType() {
        return this.deliveryChannelType;
    }
    /**
     * The description of the delivery method.
     * 
     */
    @Export(name="description", refs={String.class}, tree="[0]")
    private Output description;

    /**
     * @return The description of the delivery method.
     * 
     */
    public Output> description() {
        return Codegen.optional(this.description);
    }
    /**
     * Open or close non-compliance events of delivery resources. **NOTE:** The attribute is valid when the attribute `delivery_channel_type` is `SLS` or `MNS`.
     * 
     */
    @Export(name="nonCompliantNotification", refs={Boolean.class}, tree="[0]")
    private Output nonCompliantNotification;

    /**
     * @return Open or close non-compliance events of delivery resources. **NOTE:** The attribute is valid when the attribute `delivery_channel_type` is `SLS` or `MNS`.
     * 
     */
    public Output nonCompliantNotification() {
        return this.nonCompliantNotification;
    }
    /**
     * The oss ARN of the delivery channel when the value data oversized limit.
     * * The value must be in one of the following formats: `acs:oss:{RegionId}:{accountId}:{bucketName}`, if your delivery destination is an Object Storage Service (OSS) bucket.
     * * Only delivery channels `SLS` and `MNS` are supported. The delivery channel limit for Log Service SLS is 1 MB, and the delivery channel limit for Message Service MNS is 64 KB.
     * 
     */
    @Export(name="oversizedDataOssTargetArn", refs={String.class}, tree="[0]")
    private Output oversizedDataOssTargetArn;

    /**
     * @return The oss ARN of the delivery channel when the value data oversized limit.
     * * The value must be in one of the following formats: `acs:oss:{RegionId}:{accountId}:{bucketName}`, if your delivery destination is an Object Storage Service (OSS) bucket.
     * * Only delivery channels `SLS` and `MNS` are supported. The delivery channel limit for Log Service SLS is 1 MB, and the delivery channel limit for Message Service MNS is 64 KB.
     * 
     */
    public Output> oversizedDataOssTargetArn() {
        return Codegen.optional(this.oversizedDataOssTargetArn);
    }
    /**
     * 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.
     * 
     */
    @Export(name="status", refs={Integer.class}, tree="[0]")
    private Output status;

    /**
     * @return 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.
     * 
     */
    public Output status() {
        return this.status;
    }

    /**
     *
     * @param name The _unique_ name of the resulting resource.
     */
    public AggregateDelivery(String name) {
        this(name, AggregateDeliveryArgs.Empty);
    }
    /**
     *
     * @param name The _unique_ name of the resulting resource.
     * @param args The arguments to use to populate this resource's properties.
     */
    public AggregateDelivery(String name, AggregateDeliveryArgs args) {
        this(name, args, null);
    }
    /**
     *
     * @param name The _unique_ name of the resulting resource.
     * @param args The arguments to use to populate this resource's properties.
     * @param options A bag of options that control this resource's behavior.
     */
    public AggregateDelivery(String name, AggregateDeliveryArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
        super("alicloud:cfg/aggregateDelivery:AggregateDelivery", name, args == null ? AggregateDeliveryArgs.Empty : args, makeResourceOptions(options, Codegen.empty()));
    }

    private AggregateDelivery(String name, Output id, @Nullable AggregateDeliveryState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
        super("alicloud:cfg/aggregateDelivery:AggregateDelivery", name, state, makeResourceOptions(options, id));
    }

    private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) {
        var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder()
            .version(Utilities.getVersion())
            .build();
        return com.pulumi.resources.CustomResourceOptions.merge(defaultOptions, options, id);
    }

    /**
     * Get an existing Host resource's state with the given name, ID, and optional extra
     * properties used to qualify the lookup.
     *
     * @param name The _unique_ name of the resulting resource.
     * @param id The _unique_ provider ID of the resource to lookup.
     * @param state
     * @param options Optional settings to control the behavior of the CustomResource.
     */
    public static AggregateDelivery get(String name, Output id, @Nullable AggregateDeliveryState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
        return new AggregateDelivery(name, id, state, options);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy