1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. cfg
  5. getAggregateDeliveries
Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

alicloud.cfg.getAggregateDeliveries

Explore with Pulumi AI

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

NOTE: Available since 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);
Copy
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)
Copy
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
	})
}
Copy
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),
    };
});
Copy
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()));
    }
}
Copy
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}
Copy

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>
Copy
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]
Copy
func GetAggregateDeliveries(ctx *Context, args *GetAggregateDeliveriesArgs, opts ...InvokeOption) (*GetAggregateDeliveriesResult, error)
func GetAggregateDeliveriesOutput(ctx *Context, args *GetAggregateDeliveriesOutputArgs, opts ...InvokeOption) GetAggregateDeliveriesResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetAggregateDeliveriesResult> getAggregateDeliveries(GetAggregateDeliveriesArgs args, InvokeOptions options)
public static Output<GetAggregateDeliveriesResult> getAggregateDeliveries(GetAggregateDeliveriesArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: alicloud:cfg/getAggregateDeliveries:getAggregateDeliveries
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

AggregatorId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the Aggregator.
Ids Changes to this property will trigger replacement. List<string>
A list of Aggregate Delivery IDs.
NameRegex Changes to this property will trigger replacement. string
A regex string to filter results by Aggregate Delivery name.
OutputFile string
File name where to save data source results (after running pulumi preview).
Status Changes to this property will trigger replacement. int
The status of the delivery method. Valid values: 0: The delivery method is disabled. 1: The delivery destination is enabled.
AggregatorId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the Aggregator.
Ids Changes to this property will trigger replacement. []string
A list of Aggregate Delivery IDs.
NameRegex Changes to this property will trigger replacement. string
A regex string to filter results by Aggregate Delivery name.
OutputFile string
File name where to save data source results (after running pulumi preview).
Status Changes to this property will trigger replacement. int
The status of the delivery method. Valid values: 0: The delivery method is disabled. 1: The delivery destination is enabled.
aggregatorId
This property is required.
Changes to this property will trigger replacement.
String
The ID of the Aggregator.
ids Changes to this property will trigger replacement. List<String>
A list of Aggregate Delivery IDs.
nameRegex Changes to this property will trigger replacement. String
A regex string to filter results by Aggregate Delivery name.
outputFile String
File name where to save data source results (after running pulumi preview).
status Changes to this property will trigger replacement. Integer
The status of the delivery method. Valid values: 0: The delivery method is disabled. 1: The delivery destination is enabled.
aggregatorId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the Aggregator.
ids Changes to this property will trigger replacement. string[]
A list of Aggregate Delivery IDs.
nameRegex Changes to this property will trigger replacement. string
A regex string to filter results by Aggregate Delivery name.
outputFile string
File name where to save data source results (after running pulumi preview).
status Changes to this property will trigger replacement. number
The status of the delivery method. Valid values: 0: The delivery method is disabled. 1: The delivery destination is enabled.
aggregator_id
This property is required.
Changes to this property will trigger replacement.
str
The ID of the Aggregator.
ids Changes to this property will trigger replacement. Sequence[str]
A list of Aggregate Delivery IDs.
name_regex Changes to this property will trigger replacement. str
A regex string to filter results by Aggregate Delivery name.
output_file str
File name where to save data source results (after running pulumi preview).
status Changes to this property will trigger replacement. int
The status of the delivery method. Valid values: 0: The delivery method is disabled. 1: The delivery destination is enabled.
aggregatorId
This property is required.
Changes to this property will trigger replacement.
String
The ID of the Aggregator.
ids Changes to this property will trigger replacement. List<String>
A list of Aggregate Delivery IDs.
nameRegex Changes to this property will trigger replacement. String
A regex string to filter results by Aggregate Delivery name.
outputFile String
File name where to save data source results (after running pulumi preview).
status Changes to this property will trigger replacement. 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
The ID of the Aggregator.
Deliveries List<Pulumi.AliCloud.Cfg.Outputs.GetAggregateDeliveriesDelivery>
A list of Config Aggregate Deliveries. Each element contains the following attributes:
Id string
The provider-assigned unique ID for this managed resource.
Ids List<string>
Names List<string>
A list of Aggregate Delivery names.
NameRegex string
OutputFile string
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.
Deliveries []GetAggregateDeliveriesDelivery
A list of Config Aggregate Deliveries. Each element contains the following attributes:
Id string
The provider-assigned unique ID for this managed resource.
Ids []string
Names []string
A list of Aggregate Delivery names.
NameRegex string
OutputFile string
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.
deliveries List<GetAggregateDeliveriesDelivery>
A list of Config Aggregate Deliveries. Each element contains the following attributes:
id String
The provider-assigned unique ID for this managed resource.
ids List<String>
names List<String>
A list of Aggregate Delivery names.
nameRegex String
outputFile String
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.
deliveries GetAggregateDeliveriesDelivery[]
A list of Config Aggregate Deliveries. Each element contains the following attributes:
id string
The provider-assigned unique ID for this managed resource.
ids string[]
names string[]
A list of Aggregate Delivery names.
nameRegex string
outputFile string
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.
deliveries Sequence[GetAggregateDeliveriesDelivery]
A list of Config Aggregate Deliveries. Each element contains the following attributes:
id str
The provider-assigned unique ID for this managed resource.
ids Sequence[str]
names Sequence[str]
A list of Aggregate Delivery names.
name_regex str
output_file str
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.
deliveries List<Property Map>
A list of Config Aggregate Deliveries. Each element contains the following attributes:
id String
The provider-assigned unique ID for this managed resource.
ids List<String>
names List<String>
A list of Aggregate Delivery names.
nameRegex String
outputFile String
status Number
The status of the delivery method. Valid values: 0: The delivery method is disabled. 1: The delivery destination is enabled.

Supporting Types

GetAggregateDeliveriesDelivery

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