1. Packages
  2. AWS
  3. API Docs
  4. appconfig
  5. getConfigurationProfile
AWS v6.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

aws.appconfig.getConfigurationProfile

Explore with Pulumi AI

Provides access to an AppConfig Configuration Profile.

Example Usage

Basic Usage

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = aws.appconfig.getConfigurationProfile({
    applicationId: "b5d5gpj",
    configurationProfileId: "qrbb1c1",
});
Copy
import pulumi
import pulumi_aws as aws

example = aws.appconfig.get_configuration_profile(application_id="b5d5gpj",
    configuration_profile_id="qrbb1c1")
Copy
package main

import (
	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/appconfig"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := appconfig.LookupConfigurationProfile(ctx, &appconfig.LookupConfigurationProfileArgs{
			ApplicationId:          "b5d5gpj",
			ConfigurationProfileId: "qrbb1c1",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;

return await Deployment.RunAsync(() => 
{
    var example = Aws.AppConfig.GetConfigurationProfile.Invoke(new()
    {
        ApplicationId = "b5d5gpj",
        ConfigurationProfileId = "qrbb1c1",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.appconfig.AppconfigFunctions;
import com.pulumi.aws.appconfig.inputs.GetConfigurationProfileArgs;
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 = AppconfigFunctions.getConfigurationProfile(GetConfigurationProfileArgs.builder()
            .applicationId("b5d5gpj")
            .configurationProfileId("qrbb1c1")
            .build());

    }
}
Copy
variables:
  example:
    fn::invoke:
      function: aws:appconfig:getConfigurationProfile
      arguments:
        applicationId: b5d5gpj
        configurationProfileId: qrbb1c1
Copy

Using getConfigurationProfile

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 getConfigurationProfile(args: GetConfigurationProfileArgs, opts?: InvokeOptions): Promise<GetConfigurationProfileResult>
function getConfigurationProfileOutput(args: GetConfigurationProfileOutputArgs, opts?: InvokeOptions): Output<GetConfigurationProfileResult>
Copy
def get_configuration_profile(application_id: Optional[str] = None,
                              configuration_profile_id: Optional[str] = None,
                              tags: Optional[Mapping[str, str]] = None,
                              opts: Optional[InvokeOptions] = None) -> GetConfigurationProfileResult
def get_configuration_profile_output(application_id: Optional[pulumi.Input[str]] = None,
                              configuration_profile_id: Optional[pulumi.Input[str]] = None,
                              tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
                              opts: Optional[InvokeOptions] = None) -> Output[GetConfigurationProfileResult]
Copy
func LookupConfigurationProfile(ctx *Context, args *LookupConfigurationProfileArgs, opts ...InvokeOption) (*LookupConfigurationProfileResult, error)
func LookupConfigurationProfileOutput(ctx *Context, args *LookupConfigurationProfileOutputArgs, opts ...InvokeOption) LookupConfigurationProfileResultOutput
Copy

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

public static class GetConfigurationProfile 
{
    public static Task<GetConfigurationProfileResult> InvokeAsync(GetConfigurationProfileArgs args, InvokeOptions? opts = null)
    public static Output<GetConfigurationProfileResult> Invoke(GetConfigurationProfileInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetConfigurationProfileResult> getConfigurationProfile(GetConfigurationProfileArgs args, InvokeOptions options)
public static Output<GetConfigurationProfileResult> getConfigurationProfile(GetConfigurationProfileArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: aws:appconfig/getConfigurationProfile:getConfigurationProfile
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

ApplicationId This property is required. string
ID of the AppConfig application to which this configuration profile belongs.
ConfigurationProfileId This property is required. string
ID of the Configuration Profile.
Tags Dictionary<string, string>
Map of tags for the resource.
ApplicationId This property is required. string
ID of the AppConfig application to which this configuration profile belongs.
ConfigurationProfileId This property is required. string
ID of the Configuration Profile.
Tags map[string]string
Map of tags for the resource.
applicationId This property is required. String
ID of the AppConfig application to which this configuration profile belongs.
configurationProfileId This property is required. String
ID of the Configuration Profile.
tags Map<String,String>
Map of tags for the resource.
applicationId This property is required. string
ID of the AppConfig application to which this configuration profile belongs.
configurationProfileId This property is required. string
ID of the Configuration Profile.
tags {[key: string]: string}
Map of tags for the resource.
application_id This property is required. str
ID of the AppConfig application to which this configuration profile belongs.
configuration_profile_id This property is required. str
ID of the Configuration Profile.
tags Mapping[str, str]
Map of tags for the resource.
applicationId This property is required. String
ID of the AppConfig application to which this configuration profile belongs.
configurationProfileId This property is required. String
ID of the Configuration Profile.
tags Map<String>
Map of tags for the resource.

getConfigurationProfile Result

The following output properties are available:

ApplicationId string
Arn string
ARN of the Configuration Profile.
ConfigurationProfileId string
Description string
Description of the Configuration Profile.
Id string
The provider-assigned unique ID for this managed resource.
KmsKeyIdentifier string
LocationUri string
Location URI of the Configuration Profile.
Name string
Name of the Configuration Profile.
RetrievalRoleArn string
ARN of an IAM role with permission to access the configuration at the specified location_uri.
Tags Dictionary<string, string>
Map of tags for the resource.
Type string
Type of validator. Valid values: JSON_SCHEMA and LAMBDA.
Validators List<GetConfigurationProfileValidator>
Nested list of methods for validating the configuration.
ApplicationId string
Arn string
ARN of the Configuration Profile.
ConfigurationProfileId string
Description string
Description of the Configuration Profile.
Id string
The provider-assigned unique ID for this managed resource.
KmsKeyIdentifier string
LocationUri string
Location URI of the Configuration Profile.
Name string
Name of the Configuration Profile.
RetrievalRoleArn string
ARN of an IAM role with permission to access the configuration at the specified location_uri.
Tags map[string]string
Map of tags for the resource.
Type string
Type of validator. Valid values: JSON_SCHEMA and LAMBDA.
Validators []GetConfigurationProfileValidator
Nested list of methods for validating the configuration.
applicationId String
arn String
ARN of the Configuration Profile.
configurationProfileId String
description String
Description of the Configuration Profile.
id String
The provider-assigned unique ID for this managed resource.
kmsKeyIdentifier String
locationUri String
Location URI of the Configuration Profile.
name String
Name of the Configuration Profile.
retrievalRoleArn String
ARN of an IAM role with permission to access the configuration at the specified location_uri.
tags Map<String,String>
Map of tags for the resource.
type String
Type of validator. Valid values: JSON_SCHEMA and LAMBDA.
validators List<GetConfigurationProfileValidator>
Nested list of methods for validating the configuration.
applicationId string
arn string
ARN of the Configuration Profile.
configurationProfileId string
description string
Description of the Configuration Profile.
id string
The provider-assigned unique ID for this managed resource.
kmsKeyIdentifier string
locationUri string
Location URI of the Configuration Profile.
name string
Name of the Configuration Profile.
retrievalRoleArn string
ARN of an IAM role with permission to access the configuration at the specified location_uri.
tags {[key: string]: string}
Map of tags for the resource.
type string
Type of validator. Valid values: JSON_SCHEMA and LAMBDA.
validators GetConfigurationProfileValidator[]
Nested list of methods for validating the configuration.
application_id str
arn str
ARN of the Configuration Profile.
configuration_profile_id str
description str
Description of the Configuration Profile.
id str
The provider-assigned unique ID for this managed resource.
kms_key_identifier str
location_uri str
Location URI of the Configuration Profile.
name str
Name of the Configuration Profile.
retrieval_role_arn str
ARN of an IAM role with permission to access the configuration at the specified location_uri.
tags Mapping[str, str]
Map of tags for the resource.
type str
Type of validator. Valid values: JSON_SCHEMA and LAMBDA.
validators Sequence[GetConfigurationProfileValidator]
Nested list of methods for validating the configuration.
applicationId String
arn String
ARN of the Configuration Profile.
configurationProfileId String
description String
Description of the Configuration Profile.
id String
The provider-assigned unique ID for this managed resource.
kmsKeyIdentifier String
locationUri String
Location URI of the Configuration Profile.
name String
Name of the Configuration Profile.
retrievalRoleArn String
ARN of an IAM role with permission to access the configuration at the specified location_uri.
tags Map<String>
Map of tags for the resource.
type String
Type of validator. Valid values: JSON_SCHEMA and LAMBDA.
validators List<Property Map>
Nested list of methods for validating the configuration.

Supporting Types

GetConfigurationProfileValidator

Content This property is required. string
Either the JSON Schema content or the ARN of an AWS Lambda function.
Type This property is required. string
Type of validator. Valid values: JSON_SCHEMA and LAMBDA.
Content This property is required. string
Either the JSON Schema content or the ARN of an AWS Lambda function.
Type This property is required. string
Type of validator. Valid values: JSON_SCHEMA and LAMBDA.
content This property is required. String
Either the JSON Schema content or the ARN of an AWS Lambda function.
type This property is required. String
Type of validator. Valid values: JSON_SCHEMA and LAMBDA.
content This property is required. string
Either the JSON Schema content or the ARN of an AWS Lambda function.
type This property is required. string
Type of validator. Valid values: JSON_SCHEMA and LAMBDA.
content This property is required. str
Either the JSON Schema content or the ARN of an AWS Lambda function.
type This property is required. str
Type of validator. Valid values: JSON_SCHEMA and LAMBDA.
content This property is required. String
Either the JSON Schema content or the ARN of an AWS Lambda function.
type This property is required. String
Type of validator. Valid values: JSON_SCHEMA and LAMBDA.

Package Details

Repository
AWS Classic pulumi/pulumi-aws
License
Apache-2.0
Notes
This Pulumi package is based on the aws Terraform Provider.