Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi
alicloud.cfg.getDeliveries
Explore with Pulumi AI
This data source provides the Config Deliveries of the current Alibaba Cloud user.
NOTE: Available in v1.171.0+.
Example Usage
Basic Usage
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);
import pulumi
import pulumi_alicloud as alicloud
ids = alicloud.cfg.get_deliveries(ids=["example_id"])
pulumi.export("configDeliveryId1", 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.GetDeliveries(ctx, &cfg.GetDeliveriesArgs{
			Ids: []string{
				"example_id",
			},
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("configDeliveryId1", 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.GetDeliveries.Invoke(new()
    {
        Ids = new[]
        {
            "example_id",
        },
    });
    return new Dictionary<string, object?>
    {
        ["configDeliveryId1"] = ids.Apply(getDeliveriesResult => getDeliveriesResult.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.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()));
    }
}
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 dictionaryThe following arguments are supported:
- Ids List<string>
 - A list of Delivery IDs.
 - Name
Regex string - A regex string to filter results by delivery channel name.
 - 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. 
- Ids []string
 - A list of Delivery IDs.
 - Name
Regex string - A regex string to filter results by delivery channel name.
 - 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. 
- ids List<String>
 - A list of Delivery IDs.
 - name
Regex String - A regex string to filter results by delivery channel name.
 - 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. 
- ids string[]
 - A list of Delivery IDs.
 - name
Regex string - A regex string to filter results by delivery channel name.
 - 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. 
- ids Sequence[str]
 - A list of Delivery IDs.
 - name_
regex str - A regex string to filter results by delivery channel name.
 - 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. 
- ids List<String>
 - A list of Delivery IDs.
 - name
Regex String - A regex string to filter results by delivery channel name.
 - 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. 
getDeliveries Result
The following output properties are available:
- Deliveries
List<Pulumi.
Ali Cloud. Cfg. Outputs. Get 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
 
- Deliveries
[]Get
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
 
- deliveries
List<Get
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
 
- deliveries
Get
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
 
- deliveries
Sequence[Get
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
 
- 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
GetDeliveriesDelivery  
- Account
Id string - The Aliyun User Id.
 - 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 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.
 - 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 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.
 - 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 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.
 - 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 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.
 - 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 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.
 - 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 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 
alicloudTerraform Provider.