@pulumi/aws
Version:
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
111 lines • 4.86 kB
JavaScript
;
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.ConfigurationProfile = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* 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",
* },
* });
* ```
*
* ## 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
* ```
*/
class ConfigurationProfile extends pulumi.CustomResource {
/**
* Get an existing ConfigurationProfile resource's state with the given name, ID, and optional extra
* properties used to qualify the lookup.
*
* @param name The _unique_ name of the resulting resource.
* @param id The _unique_ provider ID of the resource to lookup.
* @param state Any extra arguments used during the lookup.
* @param opts Optional settings to control the behavior of the CustomResource.
*/
static get(name, id, state, opts) {
return new ConfigurationProfile(name, state, { ...opts, id: id });
}
/**
* Returns true if the given object is an instance of ConfigurationProfile. This is designed to work even
* when multiple copies of the Pulumi SDK have been loaded into the same process.
*/
static isInstance(obj) {
if (obj === undefined || obj === null) {
return false;
}
return obj['__pulumiType'] === ConfigurationProfile.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["applicationId"] = state?.applicationId;
resourceInputs["arn"] = state?.arn;
resourceInputs["configurationProfileId"] = state?.configurationProfileId;
resourceInputs["description"] = state?.description;
resourceInputs["kmsKeyIdentifier"] = state?.kmsKeyIdentifier;
resourceInputs["locationUri"] = state?.locationUri;
resourceInputs["name"] = state?.name;
resourceInputs["region"] = state?.region;
resourceInputs["retrievalRoleArn"] = state?.retrievalRoleArn;
resourceInputs["tags"] = state?.tags;
resourceInputs["tagsAll"] = state?.tagsAll;
resourceInputs["type"] = state?.type;
resourceInputs["validators"] = state?.validators;
}
else {
const args = argsOrState;
if (args?.applicationId === undefined && !opts.urn) {
throw new Error("Missing required property 'applicationId'");
}
if (args?.locationUri === undefined && !opts.urn) {
throw new Error("Missing required property 'locationUri'");
}
resourceInputs["applicationId"] = args?.applicationId;
resourceInputs["description"] = args?.description;
resourceInputs["kmsKeyIdentifier"] = args?.kmsKeyIdentifier;
resourceInputs["locationUri"] = args?.locationUri;
resourceInputs["name"] = args?.name;
resourceInputs["region"] = args?.region;
resourceInputs["retrievalRoleArn"] = args?.retrievalRoleArn;
resourceInputs["tags"] = args?.tags;
resourceInputs["type"] = args?.type;
resourceInputs["validators"] = args?.validators;
resourceInputs["arn"] = undefined /*out*/;
resourceInputs["configurationProfileId"] = undefined /*out*/;
resourceInputs["tagsAll"] = undefined /*out*/;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(ConfigurationProfile.__pulumiType, name, resourceInputs, opts);
}
}
exports.ConfigurationProfile = ConfigurationProfile;
/** @internal */
ConfigurationProfile.__pulumiType = 'aws:appconfig/configurationProfile:ConfigurationProfile';
//# sourceMappingURL=configurationProfile.js.map