Use this data source to retrieve information about a CloudFront distribution tenant.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const test = aws.cloudfront.getDistributionTenant({
id: "EDFDVBD632BHDS5",
});
import pulumi
import pulumi_aws as aws
test = aws.cloudfront.get_distribution_tenant(id="EDFDVBD632BHDS5")
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/cloudfront"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cloudfront.LookupDistributionTenant(ctx, &cloudfront.LookupDistributionTenantArgs{
Id: pulumi.StringRef("EDFDVBD632BHDS5"),
}, 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 test = Aws.CloudFront.GetDistributionTenant.Invoke(new()
{
Id = "EDFDVBD632BHDS5",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.cloudfront.CloudfrontFunctions;
import com.pulumi.aws.cloudfront.inputs.GetDistributionTenantArgs;
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 test = CloudfrontFunctions.getDistributionTenant(GetDistributionTenantArgs.builder()
.id("EDFDVBD632BHDS5")
.build());
}
}
variables:
test:
fn::invoke:
function: aws:cloudfront:getDistributionTenant
arguments:
id: EDFDVBD632BHDS5
Using getDistributionTenant
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 getDistributionTenant(args: GetDistributionTenantArgs, opts?: InvokeOptions): Promise<GetDistributionTenantResult>
function getDistributionTenantOutput(args: GetDistributionTenantOutputArgs, opts?: InvokeOptions): Output<GetDistributionTenantResult>def get_distribution_tenant(arn: Optional[str] = None,
domain: Optional[str] = None,
id: Optional[str] = None,
name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetDistributionTenantResult
def get_distribution_tenant_output(arn: Optional[pulumi.Input[str]] = None,
domain: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDistributionTenantResult]func LookupDistributionTenant(ctx *Context, args *LookupDistributionTenantArgs, opts ...InvokeOption) (*LookupDistributionTenantResult, error)
func LookupDistributionTenantOutput(ctx *Context, args *LookupDistributionTenantOutputArgs, opts ...InvokeOption) LookupDistributionTenantResultOutput> Note: This function is named LookupDistributionTenant in the Go SDK.
public static class GetDistributionTenant
{
public static Task<GetDistributionTenantResult> InvokeAsync(GetDistributionTenantArgs args, InvokeOptions? opts = null)
public static Output<GetDistributionTenantResult> Invoke(GetDistributionTenantInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetDistributionTenantResult> getDistributionTenant(GetDistributionTenantArgs args, InvokeOptions options)
public static Output<GetDistributionTenantResult> getDistributionTenant(GetDistributionTenantArgs args, InvokeOptions options)
fn::invoke:
function: aws:cloudfront/getDistributionTenant:getDistributionTenant
arguments:
# arguments dictionaryThe following arguments are supported:
- Arn string
- ARN (Amazon Resource Name) for the distribution tenant.
- Domain string
- An associated domain of the distribution tenant. Exactly one of
idordomainmust be specified. - Id string
- Identifier for the distribution tenant. For example:
EDFDVBD632BHDS5. Exactly one ofidordomainmust be specified. - Name string
- Arn string
- ARN (Amazon Resource Name) for the distribution tenant.
- Domain string
- An associated domain of the distribution tenant. Exactly one of
idordomainmust be specified. - Id string
- Identifier for the distribution tenant. For example:
EDFDVBD632BHDS5. Exactly one ofidordomainmust be specified. - Name string
- arn String
- ARN (Amazon Resource Name) for the distribution tenant.
- domain String
- An associated domain of the distribution tenant. Exactly one of
idordomainmust be specified. - id String
- Identifier for the distribution tenant. For example:
EDFDVBD632BHDS5. Exactly one ofidordomainmust be specified. - name String
- arn string
- ARN (Amazon Resource Name) for the distribution tenant.
- domain string
- An associated domain of the distribution tenant. Exactly one of
idordomainmust be specified. - id string
- Identifier for the distribution tenant. For example:
EDFDVBD632BHDS5. Exactly one ofidordomainmust be specified. - name string
- arn String
- ARN (Amazon Resource Name) for the distribution tenant.
- domain String
- An associated domain of the distribution tenant. Exactly one of
idordomainmust be specified. - id String
- Identifier for the distribution tenant. For example:
EDFDVBD632BHDS5. Exactly one ofidordomainmust be specified. - name String
getDistributionTenant Result
The following output properties are available:
- Arn string
- ARN (Amazon Resource Name) for the distribution tenant.
- Connection
Group stringId - The CloudFront connection group the tenant is associated with.
- Customizations
List<Get
Distribution Tenant Customization> - Distribution
Id string - The ID of the CloudFront distribution the tenant is associated with.
- Domains
List<Get
Distribution Tenant Domain> - List of domains for the distribution tenant.
- Enabled bool
- Whether the distribution tenant is enabled.
- Etag string
- Current version of the distribution tenant's information. For example:
E2QWRUHAPOMQZL. - Id string
- Managed
Certificate List<GetRequests Distribution Tenant Managed Certificate Request> - Name string
- Parameters
List<Get
Distribution Tenant Parameter> - Status string
- Current status of the distribution tenant.
Deployedif the distribution tenant's information is fully propagated throughout the Amazon CloudFront system. - Dictionary<string, string>
- Domain string
- Arn string
- ARN (Amazon Resource Name) for the distribution tenant.
- Connection
Group stringId - The CloudFront connection group the tenant is associated with.
- Customizations
[]Get
Distribution Tenant Customization - Distribution
Id string - The ID of the CloudFront distribution the tenant is associated with.
- Domains
[]Get
Distribution Tenant Domain - List of domains for the distribution tenant.
- Enabled bool
- Whether the distribution tenant is enabled.
- Etag string
- Current version of the distribution tenant's information. For example:
E2QWRUHAPOMQZL. - Id string
- Managed
Certificate []GetRequests Distribution Tenant Managed Certificate Request - Name string
- Parameters
[]Get
Distribution Tenant Parameter - Status string
- Current status of the distribution tenant.
Deployedif the distribution tenant's information is fully propagated throughout the Amazon CloudFront system. - map[string]string
- Domain string
- arn String
- ARN (Amazon Resource Name) for the distribution tenant.
- connection
Group StringId - The CloudFront connection group the tenant is associated with.
- customizations
List<Get
Distribution Tenant Customization> - distribution
Id String - The ID of the CloudFront distribution the tenant is associated with.
- domains
List<Get
Distribution Tenant Domain> - List of domains for the distribution tenant.
- enabled Boolean
- Whether the distribution tenant is enabled.
- etag String
- Current version of the distribution tenant's information. For example:
E2QWRUHAPOMQZL. - id String
- managed
Certificate List<GetRequests Distribution Tenant Managed Certificate Request> - name String
- parameters
List<Get
Distribution Tenant Parameter> - status String
- Current status of the distribution tenant.
Deployedif the distribution tenant's information is fully propagated throughout the Amazon CloudFront system. - Map<String,String>
- domain String
- arn string
- ARN (Amazon Resource Name) for the distribution tenant.
- connection
Group stringId - The CloudFront connection group the tenant is associated with.
- customizations
Get
Distribution Tenant Customization[] - distribution
Id string - The ID of the CloudFront distribution the tenant is associated with.
- domains
Get
Distribution Tenant Domain[] - List of domains for the distribution tenant.
- enabled boolean
- Whether the distribution tenant is enabled.
- etag string
- Current version of the distribution tenant's information. For example:
E2QWRUHAPOMQZL. - id string
- managed
Certificate GetRequests Distribution Tenant Managed Certificate Request[] - name string
- parameters
Get
Distribution Tenant Parameter[] - status string
- Current status of the distribution tenant.
Deployedif the distribution tenant's information is fully propagated throughout the Amazon CloudFront system. - {[key: string]: string}
- domain string
- arn str
- ARN (Amazon Resource Name) for the distribution tenant.
- connection_
group_ strid - The CloudFront connection group the tenant is associated with.
- customizations
Sequence[Get
Distribution Tenant Customization] - distribution_
id str - The ID of the CloudFront distribution the tenant is associated with.
- domains
Sequence[Get
Distribution Tenant Domain] - List of domains for the distribution tenant.
- enabled bool
- Whether the distribution tenant is enabled.
- etag str
- Current version of the distribution tenant's information. For example:
E2QWRUHAPOMQZL. - id str
- managed_
certificate_ Sequence[Getrequests Distribution Tenant Managed Certificate Request] - name str
- parameters
Sequence[Get
Distribution Tenant Parameter] - status str
- Current status of the distribution tenant.
Deployedif the distribution tenant's information is fully propagated throughout the Amazon CloudFront system. - Mapping[str, str]
- domain str
- arn String
- ARN (Amazon Resource Name) for the distribution tenant.
- connection
Group StringId - The CloudFront connection group the tenant is associated with.
- customizations List<Property Map>
- distribution
Id String - The ID of the CloudFront distribution the tenant is associated with.
- domains List<Property Map>
- List of domains for the distribution tenant.
- enabled Boolean
- Whether the distribution tenant is enabled.
- etag String
- Current version of the distribution tenant's information. For example:
E2QWRUHAPOMQZL. - id String
- managed
Certificate List<Property Map>Requests - name String
- parameters List<Property Map>
- status String
- Current status of the distribution tenant.
Deployedif the distribution tenant's information is fully propagated throughout the Amazon CloudFront system. - Map<String>
- domain String
Supporting Types
GetDistributionTenantCustomization
GetDistributionTenantCustomizationCertificate
- Arn string
- ARN (Amazon Resource Name) for the distribution tenant.
- Arn string
- ARN (Amazon Resource Name) for the distribution tenant.
- arn String
- ARN (Amazon Resource Name) for the distribution tenant.
- arn string
- ARN (Amazon Resource Name) for the distribution tenant.
- arn str
- ARN (Amazon Resource Name) for the distribution tenant.
- arn String
- ARN (Amazon Resource Name) for the distribution tenant.
GetDistributionTenantCustomizationGeoRestriction
- Locations List<string>
- Restriction
Type string
- Locations []string
- Restriction
Type string
- locations List<String>
- restriction
Type String
- locations string[]
- restriction
Type string
- locations Sequence[str]
- restriction_
type str
- locations List<String>
- restriction
Type String
GetDistributionTenantCustomizationWebAcl
GetDistributionTenantDomain
GetDistributionTenantManagedCertificateRequest
- Certificate
Transparency stringLogging Preference - Primary
Domain stringName - Validation
Token stringHost
- Certificate
Transparency stringLogging Preference - Primary
Domain stringName - Validation
Token stringHost
- certificate
Transparency StringLogging Preference - primary
Domain StringName - validation
Token StringHost
- certificate
Transparency stringLogging Preference - primary
Domain stringName - validation
Token stringHost
- certificate
Transparency StringLogging Preference - primary
Domain StringName - validation
Token StringHost
GetDistributionTenantParameter
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.
