1. Packages
  2. Alicloud Provider
  3. API Docs
  4. cfg
  5. getAggregateDeliveries
Alibaba Cloud v3.62.1 published on Monday, Sep 16, 2024 by Pulumi

alicloud.cfg.getAggregateDeliveries

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.62.1 published on Monday, Sep 16, 2024 by Pulumi

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

    NOTE: Available in v1.172.0+.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const ids = alicloud.cfg.getAggregateDeliveries({
        aggregatorId: "example_value",
        ids: [
            "example_value-1",
            "example_value-2",
        ],
    });
    export const configAggregateDeliveryId1 = ids.then(ids => ids.deliveries?.[0]?.id);
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    ids = alicloud.cfg.get_aggregate_deliveries(aggregator_id="example_value",
        ids=[
            "example_value-1",
            "example_value-2",
        ])
    pulumi.export("configAggregateDeliveryId1", ids.deliveries[0].id)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/cfg"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		ids, err := cfg.GetAggregateDeliveries(ctx, &cfg.GetAggregateDeliveriesArgs{
    			AggregatorId: "example_value",
    			Ids: []string{
    				"example_value-1",
    				"example_value-2",
    			},
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("configAggregateDeliveryId1", ids.Deliveries[0].Id)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var ids = AliCloud.Cfg.GetAggregateDeliveries.Invoke(new()
        {
            AggregatorId = "example_value",
            Ids = new[]
            {
                "example_value-1",
                "example_value-2",
            },
        });
    
        return new Dictionary<string, object?>
        {
            ["configAggregateDeliveryId1"] = ids.Apply(getAggregateDeliveriesResult => getAggregateDeliveriesResult.Deliveries[0]?.Id),
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.cfg.CfgFunctions;
    import com.pulumi.alicloud.cfg.inputs.GetAggregateDeliveriesArgs;
    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 ids = CfgFunctions.getAggregateDeliveries(GetAggregateDeliveriesArgs.builder()
                .aggregatorId("example_value")
                .ids(            
                    "example_value-1",
                    "example_value-2")
                .build());
    
            ctx.export("configAggregateDeliveryId1", ids.applyValue(getAggregateDeliveriesResult -> getAggregateDeliveriesResult.deliveries()[0].id()));
        }
    }
    
    variables:
      ids:
        fn::invoke:
          Function: alicloud:cfg:getAggregateDeliveries
          Arguments:
            aggregatorId: example_value
            ids:
              - example_value-1
              - example_value-2
    outputs:
      configAggregateDeliveryId1: ${ids.deliveries[0].id}
    

    Using getAggregateDeliveries

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getAggregateDeliveries(args: GetAggregateDeliveriesArgs, opts?: InvokeOptions): Promise<GetAggregateDeliveriesResult>
    function getAggregateDeliveriesOutput(args: GetAggregateDeliveriesOutputArgs, opts?: InvokeOptions): Output<GetAggregateDeliveriesResult>
    def get_aggregate_deliveries(aggregator_id: Optional[str] = None,
                                 ids: Optional[Sequence[str]] = None,
                                 name_regex: Optional[str] = None,
                                 output_file: Optional[str] = None,
                                 status: Optional[int] = None,
                                 opts: Optional[InvokeOptions] = None) -> GetAggregateDeliveriesResult
    def get_aggregate_deliveries_output(aggregator_id: Optional[pulumi.Input[str]] = None,
                                 ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                                 name_regex: Optional[pulumi.Input[str]] = None,
                                 output_file: Optional[pulumi.Input[str]] = None,
                                 status: Optional[pulumi.Input[int]] = None,
                                 opts: Optional[InvokeOptions] = None) -> Output[GetAggregateDeliveriesResult]
    func GetAggregateDeliveries(ctx *Context, args *GetAggregateDeliveriesArgs, opts ...InvokeOption) (*GetAggregateDeliveriesResult, error)
    func GetAggregateDeliveriesOutput(ctx *Context, args *GetAggregateDeliveriesOutputArgs, opts ...InvokeOption) GetAggregateDeliveriesResultOutput

    > Note: This function is named GetAggregateDeliveries in the Go SDK.

    public static class GetAggregateDeliveries 
    {
        public static Task<GetAggregateDeliveriesResult> InvokeAsync(GetAggregateDeliveriesArgs args, InvokeOptions? opts = null)
        public static Output<GetAggregateDeliveriesResult> Invoke(GetAggregateDeliveriesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetAggregateDeliveriesResult> getAggregateDeliveries(GetAggregateDeliveriesArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: alicloud:cfg/getAggregateDeliveries:getAggregateDeliveries
      arguments:
        # arguments dictionary

    The following arguments are supported:

    AggregatorId string
    The ID of the Aggregator.
    Ids List<string>
    A list of Aggregate Delivery IDs.
    NameRegex string
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    Status int
    The status of the delivery method. Valid values: 0: The delivery method is disabled. 1: The delivery destination is enabled.
    AggregatorId string
    The ID of the Aggregator.
    Ids []string
    A list of Aggregate Delivery IDs.
    NameRegex string
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    Status int
    The status of the delivery method. Valid values: 0: The delivery method is disabled. 1: The delivery destination is enabled.
    aggregatorId String
    The ID of the Aggregator.
    ids List<String>
    A list of Aggregate Delivery IDs.
    nameRegex String
    outputFile String
    File name where to save data source results (after running pulumi preview).
    status Integer
    The status of the delivery method. Valid values: 0: The delivery method is disabled. 1: The delivery destination is enabled.
    aggregatorId string
    The ID of the Aggregator.
    ids string[]
    A list of Aggregate Delivery IDs.
    nameRegex string
    outputFile string
    File name where to save data source results (after running pulumi preview).
    status number
    The status of the delivery method. Valid values: 0: The delivery method is disabled. 1: The delivery destination is enabled.
    aggregator_id str
    The ID of the Aggregator.
    ids Sequence[str]
    A list of Aggregate Delivery IDs.
    name_regex str
    output_file str
    File name where to save data source results (after running pulumi preview).
    status int
    The status of the delivery method. Valid values: 0: The delivery method is disabled. 1: The delivery destination is enabled.
    aggregatorId String
    The ID of the Aggregator.
    ids List<String>
    A list of Aggregate Delivery IDs.
    nameRegex String
    outputFile String
    File name where to save data source results (after running pulumi preview).
    status Number
    The status of the delivery method. Valid values: 0: The delivery method is disabled. 1: The delivery destination is enabled.

    getAggregateDeliveries Result

    The following output properties are available:

    AggregatorId string
    Deliveries List<Pulumi.AliCloud.Cfg.Outputs.GetAggregateDeliveriesDelivery>
    Id string
    The provider-assigned unique ID for this managed resource.
    Ids List<string>
    Names List<string>
    NameRegex string
    OutputFile string
    Status int
    AggregatorId string
    Deliveries []GetAggregateDeliveriesDelivery
    Id string
    The provider-assigned unique ID for this managed resource.
    Ids []string
    Names []string
    NameRegex string
    OutputFile string
    Status int
    aggregatorId String
    deliveries List<GetAggregateDeliveriesDelivery>
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    names List<String>
    nameRegex String
    outputFile String
    status Integer
    aggregatorId string
    deliveries GetAggregateDeliveriesDelivery[]
    id string
    The provider-assigned unique ID for this managed resource.
    ids string[]
    names string[]
    nameRegex string
    outputFile string
    status number
    aggregator_id str
    deliveries Sequence[GetAggregateDeliveriesDelivery]
    id str
    The provider-assigned unique ID for this managed resource.
    ids Sequence[str]
    names Sequence[str]
    name_regex str
    output_file str
    status int
    aggregatorId String
    deliveries List<Property Map>
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    names List<String>
    nameRegex String
    outputFile String
    status Number

    Supporting Types

    GetAggregateDeliveriesDelivery

    AccountId string
    The Aliyun User Id.
    AggregatorId string
    The ID of the Aggregator.
    ConfigurationItemChangeNotification bool
    Open or close delivery configuration change history.
    ConfigurationSnapshot bool
    Open or close timed snapshot of shipping resources.
    DeliveryChannelAssumeRoleArn string
    The Alibaba Cloud Resource Name (ARN) of the role to be assumed by the delivery method.
    DeliveryChannelCondition string
    The rule attached to the delivery method.
    DeliveryChannelId string
    The ID of the delivery method.
    DeliveryChannelName string
    The name of the delivery method.
    DeliveryChannelTargetArn string
    The ARN of the delivery destination.
    DeliveryChannelType string
    The type of the delivery method.
    Description string
    The description of the delivery method.
    Id string
    The ID of the Aggregate Delivery.
    NonCompliantNotification bool
    Open or close non-compliance events of delivery resources.
    OversizedDataOssTargetArn string
    The oss ARN of the delivery channel when the value data oversized limit.
    Status int
    The status of the delivery method. Valid values: 0: The delivery method is disabled. 1: The delivery destination is enabled.
    AccountId string
    The Aliyun User Id.
    AggregatorId string
    The ID of the Aggregator.
    ConfigurationItemChangeNotification bool
    Open or close delivery configuration change history.
    ConfigurationSnapshot bool
    Open or close timed snapshot of shipping resources.
    DeliveryChannelAssumeRoleArn string
    The Alibaba Cloud Resource Name (ARN) of the role to be assumed by the delivery method.
    DeliveryChannelCondition string
    The rule attached to the delivery method.
    DeliveryChannelId string
    The ID of the delivery method.
    DeliveryChannelName string
    The name of the delivery method.
    DeliveryChannelTargetArn string
    The ARN of the delivery destination.
    DeliveryChannelType string
    The type of the delivery method.
    Description string
    The description of the delivery method.
    Id string
    The ID of the Aggregate Delivery.
    NonCompliantNotification bool
    Open or close non-compliance events of delivery resources.
    OversizedDataOssTargetArn string
    The oss ARN of the delivery channel when the value data oversized limit.
    Status int
    The status of the delivery method. Valid values: 0: The delivery method is disabled. 1: The delivery destination is enabled.
    accountId String
    The Aliyun User Id.
    aggregatorId String
    The ID of the Aggregator.
    configurationItemChangeNotification Boolean
    Open or close delivery configuration change history.
    configurationSnapshot Boolean
    Open or close timed snapshot of shipping resources.
    deliveryChannelAssumeRoleArn String
    The Alibaba Cloud Resource Name (ARN) of the role to be assumed by the delivery method.
    deliveryChannelCondition String
    The rule attached to the delivery method.
    deliveryChannelId String
    The ID of the delivery method.
    deliveryChannelName String
    The name of the delivery method.
    deliveryChannelTargetArn String
    The ARN of the delivery destination.
    deliveryChannelType String
    The type of the delivery method.
    description String
    The description of the delivery method.
    id String
    The ID of the Aggregate Delivery.
    nonCompliantNotification Boolean
    Open or close non-compliance events of delivery resources.
    oversizedDataOssTargetArn String
    The oss ARN of the delivery channel when the value data oversized limit.
    status Integer
    The status of the delivery method. Valid values: 0: The delivery method is disabled. 1: The delivery destination is enabled.
    accountId string
    The Aliyun User Id.
    aggregatorId string
    The ID of the Aggregator.
    configurationItemChangeNotification boolean
    Open or close delivery configuration change history.
    configurationSnapshot boolean
    Open or close timed snapshot of shipping resources.
    deliveryChannelAssumeRoleArn string
    The Alibaba Cloud Resource Name (ARN) of the role to be assumed by the delivery method.
    deliveryChannelCondition string
    The rule attached to the delivery method.
    deliveryChannelId string
    The ID of the delivery method.
    deliveryChannelName string
    The name of the delivery method.
    deliveryChannelTargetArn string
    The ARN of the delivery destination.
    deliveryChannelType string
    The type of the delivery method.
    description string
    The description of the delivery method.
    id string
    The ID of the Aggregate Delivery.
    nonCompliantNotification boolean
    Open or close non-compliance events of delivery resources.
    oversizedDataOssTargetArn string
    The oss ARN of the delivery channel when the value data oversized limit.
    status number
    The status of the delivery method. Valid values: 0: The delivery method is disabled. 1: The delivery destination is enabled.
    account_id str
    The Aliyun User Id.
    aggregator_id str
    The ID of the Aggregator.
    configuration_item_change_notification bool
    Open or close delivery configuration change history.
    configuration_snapshot bool
    Open or close timed snapshot of shipping resources.
    delivery_channel_assume_role_arn str
    The Alibaba Cloud Resource Name (ARN) of the role to be assumed by the delivery method.
    delivery_channel_condition str
    The rule attached to the delivery method.
    delivery_channel_id str
    The ID of the delivery method.
    delivery_channel_name str
    The name of the delivery method.
    delivery_channel_target_arn str
    The ARN of the delivery destination.
    delivery_channel_type str
    The type of the delivery method.
    description str
    The description of the delivery method.
    id str
    The ID of the Aggregate Delivery.
    non_compliant_notification bool
    Open or close non-compliance events of delivery resources.
    oversized_data_oss_target_arn str
    The oss ARN of the delivery channel when the value data oversized limit.
    status int
    The status of the delivery method. Valid values: 0: The delivery method is disabled. 1: The delivery destination is enabled.
    accountId String
    The Aliyun User Id.
    aggregatorId String
    The ID of the Aggregator.
    configurationItemChangeNotification Boolean
    Open or close delivery configuration change history.
    configurationSnapshot Boolean
    Open or close timed snapshot of shipping resources.
    deliveryChannelAssumeRoleArn String
    The Alibaba Cloud Resource Name (ARN) of the role to be assumed by the delivery method.
    deliveryChannelCondition String
    The rule attached to the delivery method.
    deliveryChannelId String
    The ID of the delivery method.
    deliveryChannelName String
    The name of the delivery method.
    deliveryChannelTargetArn String
    The ARN of the delivery destination.
    deliveryChannelType String
    The type of the delivery method.
    description String
    The description of the delivery method.
    id String
    The ID of the Aggregate Delivery.
    nonCompliantNotification Boolean
    Open or close non-compliance events of delivery resources.
    oversizedDataOssTargetArn String
    The oss ARN of the delivery channel when the value data oversized limit.
    status Number
    The status of the delivery method. Valid values: 0: The delivery method is disabled. 1: The delivery destination is enabled.

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.62.1 published on Monday, Sep 16, 2024 by Pulumi