1. Packages
  2. AWS
  3. API Docs
  4. imagebuilder
  5. getDistributionConfigurations
AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi

aws.imagebuilder.getDistributionConfigurations

Explore with Pulumi AI

aws logo
AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi

    Use this data source to get the ARNs and names of Image Builder Distribution Configurations matching the specified criteria.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = aws.imagebuilder.getDistributionConfigurations({
        filters: [{
            name: "name",
            values: ["example"],
        }],
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.imagebuilder.get_distribution_configurations(filters=[{
        "name": "name",
        "values": ["example"],
    }])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/imagebuilder"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := imagebuilder.GetDistributionConfigurations(ctx, &imagebuilder.GetDistributionConfigurationsArgs{
    			Filters: []imagebuilder.GetDistributionConfigurationsFilter{
    				{
    					Name: "name",
    					Values: []string{
    						"example",
    					},
    				},
    			},
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Aws.ImageBuilder.GetDistributionConfigurations.Invoke(new()
        {
            Filters = new[]
            {
                new Aws.ImageBuilder.Inputs.GetDistributionConfigurationsFilterInputArgs
                {
                    Name = "name",
                    Values = new[]
                    {
                        "example",
                    },
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.imagebuilder.ImagebuilderFunctions;
    import com.pulumi.aws.imagebuilder.inputs.GetDistributionConfigurationsArgs;
    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 example = ImagebuilderFunctions.getDistributionConfigurations(GetDistributionConfigurationsArgs.builder()
                .filters(GetDistributionConfigurationsFilterArgs.builder()
                    .name("name")
                    .values("example")
                    .build())
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          Function: aws:imagebuilder:getDistributionConfigurations
          Arguments:
            filters:
              - name: name
                values:
                  - example
    

    Using getDistributionConfigurations

    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 getDistributionConfigurations(args: GetDistributionConfigurationsArgs, opts?: InvokeOptions): Promise<GetDistributionConfigurationsResult>
    function getDistributionConfigurationsOutput(args: GetDistributionConfigurationsOutputArgs, opts?: InvokeOptions): Output<GetDistributionConfigurationsResult>
    def get_distribution_configurations(filters: Optional[Sequence[GetDistributionConfigurationsFilter]] = None,
                                        opts: Optional[InvokeOptions] = None) -> GetDistributionConfigurationsResult
    def get_distribution_configurations_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetDistributionConfigurationsFilterArgs]]]] = None,
                                        opts: Optional[InvokeOptions] = None) -> Output[GetDistributionConfigurationsResult]
    func GetDistributionConfigurations(ctx *Context, args *GetDistributionConfigurationsArgs, opts ...InvokeOption) (*GetDistributionConfigurationsResult, error)
    func GetDistributionConfigurationsOutput(ctx *Context, args *GetDistributionConfigurationsOutputArgs, opts ...InvokeOption) GetDistributionConfigurationsResultOutput

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

    public static class GetDistributionConfigurations 
    {
        public static Task<GetDistributionConfigurationsResult> InvokeAsync(GetDistributionConfigurationsArgs args, InvokeOptions? opts = null)
        public static Output<GetDistributionConfigurationsResult> Invoke(GetDistributionConfigurationsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDistributionConfigurationsResult> getDistributionConfigurations(GetDistributionConfigurationsArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: aws:imagebuilder/getDistributionConfigurations:getDistributionConfigurations
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Filters List<GetDistributionConfigurationsFilter>
    Configuration block(s) for filtering. Detailed below.
    Filters []GetDistributionConfigurationsFilter
    Configuration block(s) for filtering. Detailed below.
    filters List<GetDistributionConfigurationsFilter>
    Configuration block(s) for filtering. Detailed below.
    filters GetDistributionConfigurationsFilter[]
    Configuration block(s) for filtering. Detailed below.
    filters Sequence[GetDistributionConfigurationsFilter]
    Configuration block(s) for filtering. Detailed below.
    filters List<Property Map>
    Configuration block(s) for filtering. Detailed below.

    getDistributionConfigurations Result

    The following output properties are available:

    Arns List<string>
    Set of ARNs of the matched Image Builder Distribution Configurations.
    Id string
    The provider-assigned unique ID for this managed resource.
    Names List<string>
    Set of names of the matched Image Builder Distribution Configurations.
    Filters List<GetDistributionConfigurationsFilter>
    Arns []string
    Set of ARNs of the matched Image Builder Distribution Configurations.
    Id string
    The provider-assigned unique ID for this managed resource.
    Names []string
    Set of names of the matched Image Builder Distribution Configurations.
    Filters []GetDistributionConfigurationsFilter
    arns List<String>
    Set of ARNs of the matched Image Builder Distribution Configurations.
    id String
    The provider-assigned unique ID for this managed resource.
    names List<String>
    Set of names of the matched Image Builder Distribution Configurations.
    filters List<GetDistributionConfigurationsFilter>
    arns string[]
    Set of ARNs of the matched Image Builder Distribution Configurations.
    id string
    The provider-assigned unique ID for this managed resource.
    names string[]
    Set of names of the matched Image Builder Distribution Configurations.
    filters GetDistributionConfigurationsFilter[]
    arns Sequence[str]
    Set of ARNs of the matched Image Builder Distribution Configurations.
    id str
    The provider-assigned unique ID for this managed resource.
    names Sequence[str]
    Set of names of the matched Image Builder Distribution Configurations.
    filters Sequence[GetDistributionConfigurationsFilter]
    arns List<String>
    Set of ARNs of the matched Image Builder Distribution Configurations.
    id String
    The provider-assigned unique ID for this managed resource.
    names List<String>
    Set of names of the matched Image Builder Distribution Configurations.
    filters List<Property Map>

    Supporting Types

    GetDistributionConfigurationsFilter

    Name string
    Name of the filter field. Valid values can be found in the Image Builder ListDistributionConfigurations API Reference.
    Values List<string>
    Set of values that are accepted for the given filter field. Results will be selected if any given value matches.
    Name string
    Name of the filter field. Valid values can be found in the Image Builder ListDistributionConfigurations API Reference.
    Values []string
    Set of values that are accepted for the given filter field. Results will be selected if any given value matches.
    name String
    Name of the filter field. Valid values can be found in the Image Builder ListDistributionConfigurations API Reference.
    values List<String>
    Set of values that are accepted for the given filter field. Results will be selected if any given value matches.
    name string
    Name of the filter field. Valid values can be found in the Image Builder ListDistributionConfigurations API Reference.
    values string[]
    Set of values that are accepted for the given filter field. Results will be selected if any given value matches.
    name str
    Name of the filter field. Valid values can be found in the Image Builder ListDistributionConfigurations API Reference.
    values Sequence[str]
    Set of values that are accepted for the given filter field. Results will be selected if any given value matches.
    name String
    Name of the filter field. Valid values can be found in the Image Builder ListDistributionConfigurations API Reference.
    values List<String>
    Set of values that are accepted for the given filter field. Results will be selected if any given value matches.

    Package Details

    Repository
    AWS Classic pulumi/pulumi-aws
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aws Terraform Provider.
    aws logo
    AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi