Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.aws.appconfig.kotlin
import com.pulumi.aws.appconfig.ConfigurationProfileArgs.builder
import com.pulumi.aws.appconfig.kotlin.inputs.ConfigurationProfileValidatorArgs
import com.pulumi.aws.appconfig.kotlin.inputs.ConfigurationProfileValidatorArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName
/**
* Provides an AppConfig Configuration Profile resource.
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
* const example = new aws.appconfig.ConfigurationProfile("example", {
* applicationId: exampleAwsAppconfigApplication.id,
* description: "Example Configuration Profile",
* name: "example-configuration-profile-tf",
* locationUri: "hosted",
* validators: [{
* content: exampleAwsLambdaFunction.arn,
* type: "LAMBDA",
* }],
* tags: {
* Type: "AppConfig Configuration Profile",
* },
* });
* ```
* ```python
* import pulumi
* import pulumi_aws as aws
* example = aws.appconfig.ConfigurationProfile("example",
* application_id=example_aws_appconfig_application["id"],
* description="Example Configuration Profile",
* name="example-configuration-profile-tf",
* location_uri="hosted",
* validators=[{
* "content": example_aws_lambda_function["arn"],
* "type": "LAMBDA",
* }],
* tags={
* "Type": "AppConfig Configuration Profile",
* })
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Aws = Pulumi.Aws;
* return await Deployment.RunAsync(() =>
* {
* var example = new Aws.AppConfig.ConfigurationProfile("example", new()
* {
* ApplicationId = exampleAwsAppconfigApplication.Id,
* Description = "Example Configuration Profile",
* Name = "example-configuration-profile-tf",
* LocationUri = "hosted",
* Validators = new[]
* {
* new Aws.AppConfig.Inputs.ConfigurationProfileValidatorArgs
* {
* Content = exampleAwsLambdaFunction.Arn,
* Type = "LAMBDA",
* },
* },
* Tags =
* {
* { "Type", "AppConfig Configuration Profile" },
* },
* });
* });
* ```
* ```go
* 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.NewConfigurationProfile(ctx, "example", &appconfig.ConfigurationProfileArgs{
* ApplicationId: pulumi.Any(exampleAwsAppconfigApplication.Id),
* Description: pulumi.String("Example Configuration Profile"),
* Name: pulumi.String("example-configuration-profile-tf"),
* LocationUri: pulumi.String("hosted"),
* Validators: appconfig.ConfigurationProfileValidatorArray{
* &appconfig.ConfigurationProfileValidatorArgs{
* Content: pulumi.Any(exampleAwsLambdaFunction.Arn),
* Type: pulumi.String("LAMBDA"),
* },
* },
* Tags: pulumi.StringMap{
* "Type": pulumi.String("AppConfig Configuration Profile"),
* },
* })
* if err != nil {
* return err
* }
* return nil
* })
* }
* ```
* ```java
* package generated_program;
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.appconfig.ConfigurationProfile;
* import com.pulumi.aws.appconfig.ConfigurationProfileArgs;
* import com.pulumi.aws.appconfig.inputs.ConfigurationProfileValidatorArgs;
* 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) {
* var example = new ConfigurationProfile("example", ConfigurationProfileArgs.builder()
* .applicationId(exampleAwsAppconfigApplication.id())
* .description("Example Configuration Profile")
* .name("example-configuration-profile-tf")
* .locationUri("hosted")
* .validators(ConfigurationProfileValidatorArgs.builder()
* .content(exampleAwsLambdaFunction.arn())
* .type("LAMBDA")
* .build())
* .tags(Map.of("Type", "AppConfig Configuration Profile"))
* .build());
* }
* }
* ```
* ```yaml
* resources:
* example:
* type: aws:appconfig:ConfigurationProfile
* properties:
* applicationId: ${exampleAwsAppconfigApplication.id}
* description: Example Configuration Profile
* name: example-configuration-profile-tf
* locationUri: hosted
* validators:
* - content: ${exampleAwsLambdaFunction.arn}
* type: LAMBDA
* tags:
* Type: AppConfig Configuration Profile
* ```
*
* ## Import
* Using `pulumi import`, import AppConfig Configuration Profiles using the configuration profile ID and application ID separated by a colon (`:`). For example:
* ```sh
* $ pulumi import aws:appconfig/configurationProfile:ConfigurationProfile example 71abcde:11xxxxx
* ```
* @property applicationId Application ID. Must be between 4 and 7 characters in length.
* @property description Description of the configuration profile. Can be at most 1024 characters.
* @property kmsKeyIdentifier The identifier for an Key Management Service key to encrypt new configuration data versions in the AppConfig hosted configuration store. This attribute is only used for hosted configuration types. The identifier can be an KMS key ID, alias, or the Amazon Resource Name (ARN) of the key ID or alias.
* @property locationUri URI to locate the configuration. You can specify the AWS AppConfig hosted configuration store, Systems Manager (SSM) document, an SSM Parameter Store parameter, or an Amazon S3 object. For the hosted configuration store, specify `hosted`. For an SSM document, specify either the document name in the format `ssm-document://` or the ARN. For a parameter, specify either the parameter name in the format `ssm-parameter://` or the ARN. For an Amazon S3 object, specify the URI in the following format: `s3:///`.
* @property name Name for the configuration profile. Must be between 1 and 128 characters in length.
* @property retrievalRoleArn ARN of an IAM role with permission to access the configuration at the specified `location_uri`. A retrieval role ARN is not required for configurations stored in the AWS AppConfig `hosted` configuration store. It is required for all other sources that store your configuration.
* @property tags Map of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
* @property type Type of configurations contained in the profile. Valid values: `AWS.AppConfig.FeatureFlags` and `AWS.Freeform`. Default: `AWS.Freeform`.
* @property validators Set of methods for validating the configuration. Maximum of 2. See Validator below for more details.
*/
public data class ConfigurationProfileArgs(
public val applicationId: Output? = null,
public val description: Output? = null,
public val kmsKeyIdentifier: Output? = null,
public val locationUri: Output? = null,
public val name: Output? = null,
public val retrievalRoleArn: Output? = null,
public val tags: Output