AWS Classic

Pulumi Official
Package maintained by Pulumi
v5.4.0 published on Wednesday, May 4, 2022 by Pulumi

getDistributionConfiguration

Provides details about an Image Builder Distribution Configuration.

Example Usage

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
    public MyStack()
    {
        var example = Output.Create(Aws.ImageBuilder.GetDistributionConfiguration.InvokeAsync(new Aws.ImageBuilder.GetDistributionConfigurationArgs
        {
            Arn = "arn:aws:imagebuilder:us-west-2:aws:distribution-configuration/example",
        }));
    }

}
package main

import (
	"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/imagebuilder"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := imagebuilder.LookupDistributionConfiguration(ctx, &imagebuilder.LookupDistributionConfigurationArgs{
			Arn: "arn:aws:imagebuilder:us-west-2:aws:distribution-configuration/example",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var example = Output.of(ImagebuilderFunctions.getDistributionConfiguration(GetDistributionConfigurationArgs.builder()
            .arn("arn:aws:imagebuilder:us-west-2:aws:distribution-configuration/example")
            .build()));

        }
}
import pulumi
import pulumi_aws as aws

example = aws.imagebuilder.get_distribution_configuration(arn="arn:aws:imagebuilder:us-west-2:aws:distribution-configuration/example")
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = pulumi.output(aws.imagebuilder.getDistributionConfiguration({
    arn: "arn:aws:imagebuilder:us-west-2:aws:distribution-configuration/example",
}));
variables:
  example:
    Fn::Invoke:
      Function: aws:imagebuilder:getDistributionConfiguration
      Arguments:
        arn: arn:aws:imagebuilder:us-west-2:aws:distribution-configuration/example

Using getDistributionConfiguration

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 getDistributionConfiguration(args: GetDistributionConfigurationArgs, opts?: InvokeOptions): Promise<GetDistributionConfigurationResult>
function getDistributionConfigurationOutput(args: GetDistributionConfigurationOutputArgs, opts?: InvokeOptions): Output<GetDistributionConfigurationResult>
def get_distribution_configuration(arn: Optional[str] = None,
                                   tags: Optional[Mapping[str, str]] = None,
                                   opts: Optional[InvokeOptions] = None) -> GetDistributionConfigurationResult
def get_distribution_configuration_output(arn: Optional[pulumi.Input[str]] = None,
                                   tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
                                   opts: Optional[InvokeOptions] = None) -> Output[GetDistributionConfigurationResult]
func LookupDistributionConfiguration(ctx *Context, args *LookupDistributionConfigurationArgs, opts ...InvokeOption) (*LookupDistributionConfigurationResult, error)
func LookupDistributionConfigurationOutput(ctx *Context, args *LookupDistributionConfigurationOutputArgs, opts ...InvokeOption) LookupDistributionConfigurationResultOutput

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

public static class GetDistributionConfiguration 
{
    public static Task<GetDistributionConfigurationResult> InvokeAsync(GetDistributionConfigurationArgs args, InvokeOptions? opts = null)
    public static Output<GetDistributionConfigurationResult> Invoke(GetDistributionConfigurationInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetDistributionConfigurationResult> getDistributionConfiguration(GetDistributionConfigurationArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: aws:imagebuilder/getDistributionConfiguration:getDistributionConfiguration
  Arguments:
    # Arguments dictionary

The following arguments are supported:

Arn string

Amazon Resource Name (ARN) of the distribution configuration.

Tags Dictionary<string, string>

Key-value map of resource tags for the distribution configuration.

Arn string

Amazon Resource Name (ARN) of the distribution configuration.

Tags map[string]string

Key-value map of resource tags for the distribution configuration.

arn String

Amazon Resource Name (ARN) of the distribution configuration.

tags Map

Key-value map of resource tags for the distribution configuration.

arn string

Amazon Resource Name (ARN) of the distribution configuration.

tags {[key: string]: string}

Key-value map of resource tags for the distribution configuration.

arn str

Amazon Resource Name (ARN) of the distribution configuration.

tags Mapping[str, str]

Key-value map of resource tags for the distribution configuration.

arn String

Amazon Resource Name (ARN) of the distribution configuration.

tags Map

Key-value map of resource tags for the distribution configuration.

getDistributionConfiguration Result

The following output properties are available:

Arn string
DateCreated string

Date the distribution configuration was created.

DateUpdated string

Date the distribution configuration was updated.

Description string

Description of the container distribution configuration.

Distributions List<GetDistributionConfigurationDistribution>

Set of distributions.

Id string

The provider-assigned unique ID for this managed resource.

Name string

Name of the distribution configuration.

Tags Dictionary<string, string>

Key-value map of resource tags for the distribution configuration.

Arn string
DateCreated string

Date the distribution configuration was created.

DateUpdated string

Date the distribution configuration was updated.

Description string

Description of the container distribution configuration.

Distributions []GetDistributionConfigurationDistribution

Set of distributions.

Id string

The provider-assigned unique ID for this managed resource.

Name string

Name of the distribution configuration.

Tags map[string]string

Key-value map of resource tags for the distribution configuration.

arn String
dateCreated String

Date the distribution configuration was created.

dateUpdated String

Date the distribution configuration was updated.

description String

Description of the container distribution configuration.

distributions ListDistributionConfigurationDistribution>

Set of distributions.

id String

The provider-assigned unique ID for this managed resource.

name String

Name of the distribution configuration.

tags Map

Key-value map of resource tags for the distribution configuration.

arn string
dateCreated string

Date the distribution configuration was created.

dateUpdated string

Date the distribution configuration was updated.

description string

Description of the container distribution configuration.

distributions GetDistributionConfigurationDistribution[]

Set of distributions.

id string

The provider-assigned unique ID for this managed resource.

name string

Name of the distribution configuration.

tags {[key: string]: string}

Key-value map of resource tags for the distribution configuration.

arn str
date_created str

Date the distribution configuration was created.

date_updated str

Date the distribution configuration was updated.

description str

Description of the container distribution configuration.

distributions Sequence[GetDistributionConfigurationDistribution]

Set of distributions.

id str

The provider-assigned unique ID for this managed resource.

name str

Name of the distribution configuration.

tags Mapping[str, str]

Key-value map of resource tags for the distribution configuration.

arn String
dateCreated String

Date the distribution configuration was created.

dateUpdated String

Date the distribution configuration was updated.

description String

Description of the container distribution configuration.

distributions List

Set of distributions.

id String

The provider-assigned unique ID for this managed resource.

name String

Name of the distribution configuration.

tags Map

Key-value map of resource tags for the distribution configuration.

Supporting Types

GetDistributionConfigurationDistribution

AmiDistributionConfigurations List<GetDistributionConfigurationDistributionAmiDistributionConfiguration>

Nested list of AMI distribution configuration.

ContainerDistributionConfigurations List<GetDistributionConfigurationDistributionContainerDistributionConfiguration>

Nested list of container distribution configurations.

LaunchTemplateConfigurations List<GetDistributionConfigurationDistributionLaunchTemplateConfiguration>

Nested list of launch template configurations.

LicenseConfigurationArns List<string>

Set of Amazon Resource Names (ARNs) of License Manager License Configurations.

Region string

AWS Region of distribution.

AmiDistributionConfigurations []GetDistributionConfigurationDistributionAmiDistributionConfiguration

Nested list of AMI distribution configuration.

ContainerDistributionConfigurations []GetDistributionConfigurationDistributionContainerDistributionConfiguration

Nested list of container distribution configurations.

LaunchTemplateConfigurations []GetDistributionConfigurationDistributionLaunchTemplateConfiguration

Nested list of launch template configurations.

LicenseConfigurationArns []string

Set of Amazon Resource Names (ARNs) of License Manager License Configurations.

Region string

AWS Region of distribution.

amiDistributionConfigurations ListDistributionConfigurationDistributionAmiDistributionConfiguration>

Nested list of AMI distribution configuration.

containerDistributionConfigurations ListDistributionConfigurationDistributionContainerDistributionConfiguration>

Nested list of container distribution configurations.

launchTemplateConfigurations ListDistributionConfigurationDistributionLaunchTemplateConfiguration>

Nested list of launch template configurations.

licenseConfigurationArns List

Set of Amazon Resource Names (ARNs) of License Manager License Configurations.

region String

AWS Region of distribution.

amiDistributionConfigurations GetDistributionConfigurationDistributionAmiDistributionConfiguration[]

Nested list of AMI distribution configuration.

containerDistributionConfigurations GetDistributionConfigurationDistributionContainerDistributionConfiguration[]

Nested list of container distribution configurations.

launchTemplateConfigurations GetDistributionConfigurationDistributionLaunchTemplateConfiguration[]

Nested list of launch template configurations.

licenseConfigurationArns string[]

Set of Amazon Resource Names (ARNs) of License Manager License Configurations.

region string

AWS Region of distribution.

ami_distribution_configurations Sequence[GetDistributionConfigurationDistributionAmiDistributionConfiguration]

Nested list of AMI distribution configuration.

container_distribution_configurations Sequence[GetDistributionConfigurationDistributionContainerDistributionConfiguration]

Nested list of container distribution configurations.

launch_template_configurations Sequence[GetDistributionConfigurationDistributionLaunchTemplateConfiguration]

Nested list of launch template configurations.

license_configuration_arns Sequence[str]

Set of Amazon Resource Names (ARNs) of License Manager License Configurations.

region str

AWS Region of distribution.

amiDistributionConfigurations List

Nested list of AMI distribution configuration.

containerDistributionConfigurations List

Nested list of container distribution configurations.

launchTemplateConfigurations List

Nested list of launch template configurations.

licenseConfigurationArns List

Set of Amazon Resource Names (ARNs) of License Manager License Configurations.

region String

AWS Region of distribution.

GetDistributionConfigurationDistributionAmiDistributionConfiguration

AmiTags Dictionary<string, string>

Key-value map of tags to apply to distributed AMI.

Description string

Description of the container distribution configuration.

KmsKeyId string

Amazon Resource Name (ARN) of Key Management Service (KMS) Key to encrypt AMI.

LaunchPermissions List<GetDistributionConfigurationDistributionAmiDistributionConfigurationLaunchPermission>

Nested list of EC2 launch permissions.

Name string

Name of the distribution configuration.

TargetAccountIds List<string>

Set of target AWS Account identifiers.

AmiTags map[string]string

Key-value map of tags to apply to distributed AMI.

Description string

Description of the container distribution configuration.

KmsKeyId string

Amazon Resource Name (ARN) of Key Management Service (KMS) Key to encrypt AMI.

LaunchPermissions []GetDistributionConfigurationDistributionAmiDistributionConfigurationLaunchPermission

Nested list of EC2 launch permissions.

Name string

Name of the distribution configuration.

TargetAccountIds []string

Set of target AWS Account identifiers.

amiTags Map

Key-value map of tags to apply to distributed AMI.

description String

Description of the container distribution configuration.

kmsKeyId String

Amazon Resource Name (ARN) of Key Management Service (KMS) Key to encrypt AMI.

launchPermissions ListDistributionConfigurationDistributionAmiDistributionConfigurationLaunchPermission>

Nested list of EC2 launch permissions.

name String

Name of the distribution configuration.

targetAccountIds List

Set of target AWS Account identifiers.

amiTags {[key: string]: string}

Key-value map of tags to apply to distributed AMI.

description string

Description of the container distribution configuration.

kmsKeyId string

Amazon Resource Name (ARN) of Key Management Service (KMS) Key to encrypt AMI.

launchPermissions GetDistributionConfigurationDistributionAmiDistributionConfigurationLaunchPermission[]

Nested list of EC2 launch permissions.

name string

Name of the distribution configuration.

targetAccountIds string[]

Set of target AWS Account identifiers.

ami_tags Mapping[str, str]

Key-value map of tags to apply to distributed AMI.

description str

Description of the container distribution configuration.

kms_key_id str

Amazon Resource Name (ARN) of Key Management Service (KMS) Key to encrypt AMI.

launch_permissions Sequence[GetDistributionConfigurationDistributionAmiDistributionConfigurationLaunchPermission]

Nested list of EC2 launch permissions.

name str

Name of the distribution configuration.

target_account_ids Sequence[str]

Set of target AWS Account identifiers.

amiTags Map

Key-value map of tags to apply to distributed AMI.

description String

Description of the container distribution configuration.

kmsKeyId String

Amazon Resource Name (ARN) of Key Management Service (KMS) Key to encrypt AMI.

launchPermissions List

Nested list of EC2 launch permissions.

name String

Name of the distribution configuration.

targetAccountIds List

Set of target AWS Account identifiers.

GetDistributionConfigurationDistributionAmiDistributionConfigurationLaunchPermission

OrganizationArns List<string>

Set of AWS Organization ARNs.

OrganizationalUnitArns List<string>

Set of AWS Organizational Unit ARNs.

UserGroups List<string>

Set of EC2 launch permission user groups.

UserIds List<string>

Set of AWS Account identifiers.

OrganizationArns []string

Set of AWS Organization ARNs.

OrganizationalUnitArns []string

Set of AWS Organizational Unit ARNs.

UserGroups []string

Set of EC2 launch permission user groups.

UserIds []string

Set of AWS Account identifiers.

organizationArns List

Set of AWS Organization ARNs.

organizationalUnitArns List

Set of AWS Organizational Unit ARNs.

userGroups List

Set of EC2 launch permission user groups.

userIds List

Set of AWS Account identifiers.

organizationArns string[]

Set of AWS Organization ARNs.

organizationalUnitArns string[]

Set of AWS Organizational Unit ARNs.

userGroups string[]

Set of EC2 launch permission user groups.

userIds string[]

Set of AWS Account identifiers.

organization_arns Sequence[str]

Set of AWS Organization ARNs.

organizational_unit_arns Sequence[str]

Set of AWS Organizational Unit ARNs.

user_groups Sequence[str]

Set of EC2 launch permission user groups.

user_ids Sequence[str]

Set of AWS Account identifiers.

organizationArns List

Set of AWS Organization ARNs.

organizationalUnitArns List

Set of AWS Organizational Unit ARNs.

userGroups List

Set of EC2 launch permission user groups.

userIds List

Set of AWS Account identifiers.

GetDistributionConfigurationDistributionContainerDistributionConfiguration

ContainerTags List<string>

Set of tags that are attached to the container distribution configuration.

Description string

Description of the container distribution configuration.

TargetRepositories List<GetDistributionConfigurationDistributionContainerDistributionConfigurationTargetRepository>

Set of destination repositories for the container distribution configuration.

ContainerTags []string

Set of tags that are attached to the container distribution configuration.

Description string

Description of the container distribution configuration.

TargetRepositories []GetDistributionConfigurationDistributionContainerDistributionConfigurationTargetRepository

Set of destination repositories for the container distribution configuration.

containerTags List

Set of tags that are attached to the container distribution configuration.

description String

Description of the container distribution configuration.

targetRepositories ListDistributionConfigurationDistributionContainerDistributionConfigurationTargetRepository>

Set of destination repositories for the container distribution configuration.

containerTags string[]

Set of tags that are attached to the container distribution configuration.

description string

Description of the container distribution configuration.

targetRepositories GetDistributionConfigurationDistributionContainerDistributionConfigurationTargetRepository[]

Set of destination repositories for the container distribution configuration.

container_tags Sequence[str]

Set of tags that are attached to the container distribution configuration.

description str

Description of the container distribution configuration.

target_repositories Sequence[GetDistributionConfigurationDistributionContainerDistributionConfigurationTargetRepository]

Set of destination repositories for the container distribution configuration.

containerTags List

Set of tags that are attached to the container distribution configuration.

description String

Description of the container distribution configuration.

targetRepositories List

Set of destination repositories for the container distribution configuration.

GetDistributionConfigurationDistributionContainerDistributionConfigurationTargetRepository

RepositoryName string

Name of the container repository where the output container image is stored.

Service string

Service in which the image is registered.

RepositoryName string

Name of the container repository where the output container image is stored.

Service string

Service in which the image is registered.

repositoryName String

Name of the container repository where the output container image is stored.

service String

Service in which the image is registered.

repositoryName string

Name of the container repository where the output container image is stored.

service string

Service in which the image is registered.

repository_name str

Name of the container repository where the output container image is stored.

service str

Service in which the image is registered.

repositoryName String

Name of the container repository where the output container image is stored.

service String

Service in which the image is registered.

GetDistributionConfigurationDistributionLaunchTemplateConfiguration

AccountId string

The account ID that this configuration applies to.

Default bool

Indicates whether the specified Amazon EC2 launch template is set as the default launch template.

LaunchTemplateId string

ID of the Amazon EC2 launch template.

AccountId string

The account ID that this configuration applies to.

Default bool

Indicates whether the specified Amazon EC2 launch template is set as the default launch template.

LaunchTemplateId string

ID of the Amazon EC2 launch template.

accountId String

The account ID that this configuration applies to.

default_ Boolean

Indicates whether the specified Amazon EC2 launch template is set as the default launch template.

launchTemplateId String

ID of the Amazon EC2 launch template.

accountId string

The account ID that this configuration applies to.

default boolean

Indicates whether the specified Amazon EC2 launch template is set as the default launch template.

launchTemplateId string

ID of the Amazon EC2 launch template.

account_id str

The account ID that this configuration applies to.

default bool

Indicates whether the specified Amazon EC2 launch template is set as the default launch template.

launch_template_id str

ID of the Amazon EC2 launch template.

accountId String

The account ID that this configuration applies to.

default Boolean

Indicates whether the specified Amazon EC2 launch template is set as the default launch template.

launchTemplateId String

ID of the Amazon EC2 launch template.

Package Details

Repository
https://github.com/pulumi/pulumi-aws
License
Apache-2.0
Notes

This Pulumi package is based on the aws Terraform Provider.