HostedConfigurationVersionArgs

data class HostedConfigurationVersionArgs(val applicationId: Output<String>? = null, val configurationProfileId: Output<String>? = null, val content: Output<String>? = null, val contentType: Output<String>? = null, val description: Output<String>? = null) : ConvertibleToJava<HostedConfigurationVersionArgs>

Provides an AppConfig Hosted Configuration Version resource.

Example Usage

Freeform

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.appconfig.HostedConfigurationVersion;
import com.pulumi.aws.appconfig.HostedConfigurationVersionArgs;
import static com.pulumi.codegen.internal.Serialization.*;
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 HostedConfigurationVersion("example", HostedConfigurationVersionArgs.builder()
.applicationId(aws_appconfig_application.example().id())
.configurationProfileId(aws_appconfig_configuration_profile.example().configuration_profile_id())
.description("Example Freeform Hosted Configuration Version")
.contentType("application/json")
.content(serializeJson(
jsonObject(
jsonProperty("foo", "bar"),
jsonProperty("fruit", jsonArray(
"apple",
"pear",
"orange"
)),
jsonProperty("isThingEnabled", true)
)))
.build());
}
}

Feature Flags

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.appconfig.HostedConfigurationVersion;
import com.pulumi.aws.appconfig.HostedConfigurationVersionArgs;
import static com.pulumi.codegen.internal.Serialization.*;
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 HostedConfigurationVersion("example", HostedConfigurationVersionArgs.builder()
.applicationId(aws_appconfig_application.example().id())
.configurationProfileId(aws_appconfig_configuration_profile.example().configuration_profile_id())
.description("Example Feature Flag Configuration Version")
.contentType("application/json")
.content(serializeJson(
jsonObject(
jsonProperty("flags", jsonObject(
jsonProperty("foo", jsonObject(
jsonProperty("name", "foo"),
jsonProperty("_deprecation", jsonObject(
jsonProperty("status", "planned")
))
)),
jsonProperty("bar", jsonObject(
jsonProperty("name", "bar"),
jsonProperty("attributes", jsonObject(
jsonProperty("someAttribute", jsonObject(
jsonProperty("constraints", jsonObject(
jsonProperty("type", "string"),
jsonProperty("required", true)
))
)),
jsonProperty("someOtherAttribute", jsonObject(
jsonProperty("constraints", jsonObject(
jsonProperty("type", "number"),
jsonProperty("required", true)
))
))
))
))
)),
jsonProperty("values", jsonObject(
jsonProperty("foo", jsonObject(
jsonProperty("enabled", "true")
)),
jsonProperty("bar", jsonObject(
jsonProperty("enabled", "true"),
jsonProperty("someAttribute", "Hello World"),
jsonProperty("someOtherAttribute", 123)
))
)),
jsonProperty("version", "1")
)))
.build());
}
}

Import

AppConfig Hosted Configuration Versions can be imported by using the application ID, configuration profile ID, and version number separated by a slash (/), e.g.,

$ pulumi import aws:appconfig/hostedConfigurationVersion:HostedConfigurationVersion example 71abcde/11xxxxx/2

Constructors

Link copied to clipboard
constructor(applicationId: Output<String>? = null, configurationProfileId: Output<String>? = null, content: Output<String>? = null, contentType: Output<String>? = null, description: Output<String>? = null)

Properties

Link copied to clipboard
val applicationId: Output<String>? = null

Application ID.

Link copied to clipboard
val configurationProfileId: Output<String>? = null

Configuration profile ID.

Link copied to clipboard
val content: Output<String>? = null

Content of the configuration or the configuration data.

Link copied to clipboard
val contentType: Output<String>? = null

Standard MIME type describing the format of the configuration content. For more information, see Content-Type.

Link copied to clipboard
val description: Output<String>? = null

Description of the configuration.

Functions

Link copied to clipboard
open override fun toJava(): HostedConfigurationVersionArgs