alicloud logo
Alibaba Cloud v3.34.0, Mar 17 23

alicloud.cfg.getDeliveries

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

NOTE: Available in v1.171.0+.

Example Usage

Basic Usage

using System.Collections.Generic;
using Pulumi;
using AliCloud = Pulumi.AliCloud;

return await Deployment.RunAsync(() => 
{
    var ids = AliCloud.Cfg.GetDeliveries.Invoke(new()
    {
        Ids = new[]
        {
            "example_id",
        },
    });

    return new Dictionary<string, object?>
    {
        ["configDeliveryId1"] = ids.Apply(getDeliveriesResult => getDeliveriesResult.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.GetDeliveries(ctx, &cfg.GetDeliveriesArgs{
			Ids: []string{
				"example_id",
			},
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("configDeliveryId1", 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.GetDeliveriesArgs;
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.getDeliveries(GetDeliveriesArgs.builder()
            .ids("example_id")
            .build());

        ctx.export("configDeliveryId1", ids.applyValue(getDeliveriesResult -> getDeliveriesResult.deliveries()[0].id()));
    }
}
import pulumi
import pulumi_alicloud as alicloud

ids = alicloud.cfg.get_deliveries(ids=["example_id"])
pulumi.export("configDeliveryId1", ids.deliveries[0].id)
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const ids = alicloud.cfg.getDeliveries({
    ids: ["example_id"],
});
export const configDeliveryId1 = ids.then(ids => ids.deliveries?.[0]?.id);
variables:
  ids:
    fn::invoke:
      Function: alicloud:cfg:getDeliveries
      Arguments:
        ids:
          - example_id
outputs:
  configDeliveryId1: ${ids.deliveries[0].id}

Using getDeliveries

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 getDeliveries(args: GetDeliveriesArgs, opts?: InvokeOptions): Promise<GetDeliveriesResult>
function getDeliveriesOutput(args: GetDeliveriesOutputArgs, opts?: InvokeOptions): Output<GetDeliveriesResult>
def get_deliveries(ids: Optional[Sequence[str]] = None,
                   name_regex: Optional[str] = None,
                   output_file: Optional[str] = None,
                   status: Optional[int] = None,
                   opts: Optional[InvokeOptions] = None) -> GetDeliveriesResult
def get_deliveries_output(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[GetDeliveriesResult]
func GetDeliveries(ctx *Context, args *GetDeliveriesArgs, opts ...InvokeOption) (*GetDeliveriesResult, error)
func GetDeliveriesOutput(ctx *Context, args *GetDeliveriesOutputArgs, opts ...InvokeOption) GetDeliveriesResultOutput

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

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

The following arguments are supported:

Ids List<string>

A list of Delivery IDs.

NameRegex string

A regex string to filter results by delivery channel name.

OutputFile string
Status int

The status of the delivery method. Valid values: 0: The delivery method is disabled. 1: The delivery destination is enabled.

Ids []string

A list of Delivery IDs.

NameRegex string

A regex string to filter results by delivery channel name.

OutputFile string
Status int

The status of the delivery method. Valid values: 0: The delivery method is disabled. 1: The delivery destination is enabled.

ids List<String>

A list of Delivery IDs.

nameRegex String

A regex string to filter results by delivery channel name.

outputFile String
status Integer

The status of the delivery method. Valid values: 0: The delivery method is disabled. 1: The delivery destination is enabled.

ids string[]

A list of Delivery IDs.

nameRegex string

A regex string to filter results by delivery channel name.

outputFile string
status number

The status of the delivery method. Valid values: 0: The delivery method is disabled. 1: The delivery destination is enabled.

ids Sequence[str]

A list of Delivery IDs.

name_regex str

A regex string to filter results by delivery channel name.

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.

ids List<String>

A list of Delivery IDs.

nameRegex String

A regex string to filter results by delivery channel name.

outputFile String
status Number

The status of the delivery method. Valid values: 0: The delivery method is disabled. 1: The delivery destination is enabled.

getDeliveries Result

The following output properties are available:

Deliveries List<Pulumi.AliCloud.Cfg.Outputs.GetDeliveriesDelivery>
Id string

The provider-assigned unique ID for this managed resource.

Ids List<string>
Names List<string>
NameRegex string
OutputFile string
Status int
Deliveries []GetDeliveriesDelivery
Id string

The provider-assigned unique ID for this managed resource.

Ids []string
Names []string
NameRegex string
OutputFile string
Status int
deliveries List<GetDeliveriesDelivery>
id String

The provider-assigned unique ID for this managed resource.

ids List<String>
names List<String>
nameRegex String
outputFile String
status Integer
deliveries GetDeliveriesDelivery[]
id string

The provider-assigned unique ID for this managed resource.

ids string[]
names string[]
nameRegex string
outputFile string
status number
deliveries Sequence[GetDeliveriesDelivery]
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
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

GetDeliveriesDelivery

AccountId string

The Aliyun User Id.

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

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

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

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

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

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