Package com.pulumi.aws.appconfig
Class ConfigurationProfile
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.aws.appconfig.ConfigurationProfile
-
public class ConfigurationProfile extends com.pulumi.resources.CustomResourceProvides an AppConfig Configuration Profile resource. ## Example Usage
## 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 ```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.ArrayList; import java.util.Arrays; 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() .validators(ConfigurationProfileValidatorArgs.builder() .content(exampleAwsLambdaFunction.arn()) .type("LAMBDA") .build()) .applicationId(exampleAwsAppconfigApplication.id()) .description("Example Configuration Profile") .name("example-configuration-profile-tf") .locationUri("hosted") .tags(Map.of("Type", "AppConfig Configuration Profile")) .build()); } }
-
-
Constructor Summary
Constructors Constructor Description ConfigurationProfile(java.lang.String name)ConfigurationProfile(java.lang.String name, ConfigurationProfileArgs args)ConfigurationProfile(java.lang.String name, ConfigurationProfileArgs args, com.pulumi.resources.CustomResourceOptions options)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.pulumi.core.Output<java.lang.String>applicationId()com.pulumi.core.Output<java.lang.String>arn()com.pulumi.core.Output<java.lang.String>configurationProfileId()com.pulumi.core.Output<java.util.Optional<java.lang.String>>description()static ConfigurationProfileget(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, ConfigurationProfileState state, com.pulumi.resources.CustomResourceOptions options)Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.com.pulumi.core.Output<java.util.Optional<java.lang.String>>kmsKeyIdentifier()com.pulumi.core.Output<java.lang.String>locationUri()com.pulumi.core.Output<java.lang.String>name()com.pulumi.core.Output<java.lang.String>region()com.pulumi.core.Output<java.util.Optional<java.lang.String>>retrievalRoleArn()com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,java.lang.String>>>tags()com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>>tagsAll()com.pulumi.core.Output<java.util.Optional<java.lang.String>>type()com.pulumi.core.Output<java.util.Optional<java.util.List<ConfigurationProfileValidator>>>validators()
-
-
-
Constructor Detail
-
ConfigurationProfile
public ConfigurationProfile(java.lang.String name)
- Parameters:
name- The _unique_ name of the resulting resource.
-
ConfigurationProfile
public ConfigurationProfile(java.lang.String name, ConfigurationProfileArgs args)- Parameters:
name- The _unique_ name of the resulting resource.args- The arguments to use to populate this resource's properties.
-
ConfigurationProfile
public ConfigurationProfile(java.lang.String name, ConfigurationProfileArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options)- Parameters:
name- The _unique_ name of the resulting resource.args- The arguments to use to populate this resource's properties.options- A bag of options that control this resource's behavior.
-
-
Method Detail
-
applicationId
public com.pulumi.core.Output<java.lang.String> applicationId()
- Returns:
- Application ID. Must be between 4 and 7 characters in length.
-
arn
public com.pulumi.core.Output<java.lang.String> arn()
- Returns:
- ARN of the AppConfig Configuration Profile.
-
configurationProfileId
public com.pulumi.core.Output<java.lang.String> configurationProfileId()
- Returns:
- Configuration profile ID.
-
description
public com.pulumi.core.Output<java.util.Optional<java.lang.String>> description()
- Returns:
- Description of the configuration profile. Can be at most 1024 characters.
-
kmsKeyIdentifier
public com.pulumi.core.Output<java.util.Optional<java.lang.String>> kmsKeyIdentifier()
- Returns:
- Identifier for a KMS 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 ARN of the key ID or alias.
-
locationUri
public com.pulumi.core.Output<java.lang.String> locationUri()
- Returns:
- 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://<Document_name>` or the ARN. For a parameter, specify either the parameter name in the format `ssm-parameter://<Parameter_name>` or the ARN. For an Amazon S3 object, specify the URI in the following format: `s3://<bucket>/<objectKey>`.
-
name
public com.pulumi.core.Output<java.lang.String> name()
- Returns:
- Name for the configuration profile. Must be between 1 and 128 characters in length.
-
region
public com.pulumi.core.Output<java.lang.String> region()
- Returns:
- Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
-
retrievalRoleArn
public com.pulumi.core.Output<java.util.Optional<java.lang.String>> retrievalRoleArn()
- Returns:
- ARN of an IAM role with permission to access the configuration at the specified `locationUri`. 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.
-
tags
public com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,java.lang.String>>> tags()
- Returns:
- Map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
-
tagsAll
public com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>> tagsAll()
- Returns:
- Map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
-
type
public com.pulumi.core.Output<java.util.Optional<java.lang.String>> type()
- Returns:
- Type of configurations contained in the profile. Valid values: `AWS.AppConfig.FeatureFlags` and `AWS.Freeform`. Default: `AWS.Freeform`.
-
validators
public com.pulumi.core.Output<java.util.Optional<java.util.List<ConfigurationProfileValidator>>> validators()
- Returns:
- Set of methods for validating the configuration. Maximum of 2. See `validator` Block below for more details.
-
get
public static ConfigurationProfile get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, @Nullable ConfigurationProfileState state, @Nullable com.pulumi.resources.CustomResourceOptions options)
Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.- Parameters:
name- The _unique_ name of the resulting resource.id- The _unique_ provider ID of the resource to lookup.state-options- Optional settings to control the behavior of the CustomResource.
-
-