alicloud.cfg.getAggregateDeliveries
Explore with Pulumi AI
This data source provides the Config Aggregate Deliveries of the current Alibaba Cloud user.
NOTE: Available in v1.172.0+.
Example Usage
Basic Usage
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 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
})
}
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()));
}
}
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)
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);
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:
- Aggregator
Id string The ID of the Aggregator.
- Ids List<string>
A list of Aggregate Delivery IDs.
- Name
Regex string - Output
File 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.
- Aggregator
Id string The ID of the Aggregator.
- Ids []string
A list of Aggregate Delivery IDs.
- Name
Regex string - Output
File 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.
- aggregator
Id String The ID of the Aggregator.
- ids List<String>
A list of Aggregate Delivery IDs.
- name
Regex String - output
File 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.
- aggregator
Id string The ID of the Aggregator.
- ids string[]
A list of Aggregate Delivery IDs.
- name
Regex string - output
File 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.
- aggregator
Id String The ID of the Aggregator.
- ids List<String>
A list of Aggregate Delivery IDs.
- name
Regex String - output
File 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:
- Aggregator
Id string - Deliveries
List<Pulumi.
Ali Cloud. Cfg. Outputs. Get Aggregate Deliveries Delivery> - Id string
The provider-assigned unique ID for this managed resource.
- Ids List<string>
- Names List<string>
- Name
Regex string - Output
File string - Status int
- Aggregator
Id string - Deliveries
[]Get
Aggregate Deliveries Delivery - Id string
The provider-assigned unique ID for this managed resource.
- Ids []string
- Names []string
- Name
Regex string - Output
File string - Status int
- aggregator
Id String - deliveries
List<Get
Aggregate Deliveries Delivery> - id String
The provider-assigned unique ID for this managed resource.
- ids List<String>
- names List<String>
- name
Regex String - output
File String - status Integer
- aggregator
Id string - deliveries
Get
Aggregate Deliveries Delivery[] - id string
The provider-assigned unique ID for this managed resource.
- ids string[]
- names string[]
- name
Regex string - output
File string - status number
- aggregator_
id str - deliveries
Sequence[Get
Aggregate Deliveries Delivery] - 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
- aggregator
Id String - deliveries List<Property Map>
- id String
The provider-assigned unique ID for this managed resource.
- ids List<String>
- names List<String>
- name
Regex String - output
File String - status Number
Supporting Types
GetAggregateDeliveriesDelivery
- Account
Id string The Aliyun User Id.
- Aggregator
Id string The ID of the Aggregator.
- Configuration
Item boolChange Notification Open or close delivery configuration change history.
- Configuration
Snapshot bool Open or close timed snapshot of shipping resources.
- Delivery
Channel stringAssume Role Arn The Alibaba Cloud Resource Name (ARN) of the role to be assumed by the delivery method.
- Delivery
Channel stringCondition The rule attached to the delivery method.
- Delivery
Channel stringId The ID of the delivery method.
- Delivery
Channel stringName The name of the delivery method.
- Delivery
Channel stringTarget Arn The ARN of the delivery destination.
- Delivery
Channel stringType The type of the delivery method.
- Description string
The description of the delivery method.
- Id string
The ID of the Aggregate Delivery.
- Non
Compliant boolNotification Open or close non-compliance events of delivery resources.
- Oversized
Data stringOss Target Arn 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.
- Account
Id string The Aliyun User Id.
- Aggregator
Id string The ID of the Aggregator.
- Configuration
Item boolChange Notification Open or close delivery configuration change history.
- Configuration
Snapshot bool Open or close timed snapshot of shipping resources.
- Delivery
Channel stringAssume Role Arn The Alibaba Cloud Resource Name (ARN) of the role to be assumed by the delivery method.
- Delivery
Channel stringCondition The rule attached to the delivery method.
- Delivery
Channel stringId The ID of the delivery method.
- Delivery
Channel stringName The name of the delivery method.
- Delivery
Channel stringTarget Arn The ARN of the delivery destination.
- Delivery
Channel stringType The type of the delivery method.
- Description string
The description of the delivery method.
- Id string
The ID of the Aggregate Delivery.
- Non
Compliant boolNotification Open or close non-compliance events of delivery resources.
- Oversized
Data stringOss Target Arn 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.
- account
Id String The Aliyun User Id.
- aggregator
Id String The ID of the Aggregator.
- configuration
Item BooleanChange Notification Open or close delivery configuration change history.
- configuration
Snapshot Boolean Open or close timed snapshot of shipping resources.
- delivery
Channel StringAssume Role Arn The Alibaba Cloud Resource Name (ARN) of the role to be assumed by the delivery method.
- delivery
Channel StringCondition The rule attached to the delivery method.
- delivery
Channel StringId The ID of the delivery method.
- delivery
Channel StringName The name of the delivery method.
- delivery
Channel StringTarget Arn The ARN of the delivery destination.
- delivery
Channel StringType The type of the delivery method.
- description String
The description of the delivery method.
- id String
The ID of the Aggregate Delivery.
- non
Compliant BooleanNotification Open or close non-compliance events of delivery resources.
- oversized
Data StringOss Target Arn 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.
- account
Id string The Aliyun User Id.
- aggregator
Id string The ID of the Aggregator.
- configuration
Item booleanChange Notification Open or close delivery configuration change history.
- configuration
Snapshot boolean Open or close timed snapshot of shipping resources.
- delivery
Channel stringAssume Role Arn The Alibaba Cloud Resource Name (ARN) of the role to be assumed by the delivery method.
- delivery
Channel stringCondition The rule attached to the delivery method.
- delivery
Channel stringId The ID of the delivery method.
- delivery
Channel stringName The name of the delivery method.
- delivery
Channel stringTarget Arn The ARN of the delivery destination.
- delivery
Channel stringType The type of the delivery method.
- description string
The description of the delivery method.
- id string
The ID of the Aggregate Delivery.
- non
Compliant booleanNotification Open or close non-compliance events of delivery resources.
- oversized
Data stringOss Target Arn 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_ boolchange_ notification Open or close delivery configuration change history.
- configuration_
snapshot bool Open or close timed snapshot of shipping resources.
- delivery_
channel_ strassume_ role_ arn The Alibaba Cloud Resource Name (ARN) of the role to be assumed by the delivery method.
- delivery_
channel_ strcondition The rule attached to the delivery method.
- delivery_
channel_ strid The ID of the delivery method.
- delivery_
channel_ strname The name of the delivery method.
- delivery_
channel_ strtarget_ arn The ARN of the delivery destination.
- delivery_
channel_ strtype The type of the delivery method.
- description str
The description of the delivery method.
- id str
The ID of the Aggregate Delivery.
- non_
compliant_ boolnotification Open or close non-compliance events of delivery resources.
- oversized_
data_ stross_ target_ arn 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.
- account
Id String The Aliyun User Id.
- aggregator
Id String The ID of the Aggregator.
- configuration
Item BooleanChange Notification Open or close delivery configuration change history.
- configuration
Snapshot Boolean Open or close timed snapshot of shipping resources.
- delivery
Channel StringAssume Role Arn The Alibaba Cloud Resource Name (ARN) of the role to be assumed by the delivery method.
- delivery
Channel StringCondition The rule attached to the delivery method.
- delivery
Channel StringId The ID of the delivery method.
- delivery
Channel StringName The name of the delivery method.
- delivery
Channel StringTarget Arn The ARN of the delivery destination.
- delivery
Channel StringType The type of the delivery method.
- description String
The description of the delivery method.
- id String
The ID of the Aggregate Delivery.
- non
Compliant BooleanNotification Open or close non-compliance events of delivery resources.
- oversized
Data StringOss Target Arn 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.