UNPKG

@pulumi/aws

Version:

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

110 lines 5 kB
"use strict"; // *** 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.EnvironmentBlueprintConfiguration = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Resource for managing an AWS DataZone Environment Blueprint Configuration. * * ## Example Usage * * ### Basic Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = new aws.datazone.Domain("example", { * name: "example_domain", * domainExecutionRole: domainExecutionRole.arn, * }); * const defaultDataLake = aws.datazone.getEnvironmentBlueprintOutput({ * domainId: example.id, * name: "DefaultDataLake", * managed: true, * }); * const exampleEnvironmentBlueprintConfiguration = new aws.datazone.EnvironmentBlueprintConfiguration("example", { * domainId: example.id, * environmentBlueprintId: defaultDataLake.apply(defaultDataLake => defaultDataLake.id), * enabledRegions: ["us-east-1"], * regionalParameters: { * "us-east-1": { * s3Location: "s3://my-amazon-datazone-bucket", * }, * }, * }); * ``` * * ## Import * * Using `pulumi import`, import DataZone Environment Blueprint Configuration using the `domain_id` and `environment_blueprint_id`, separated by a `/`. For example: * * ```sh * $ pulumi import aws:datazone/environmentBlueprintConfiguration:EnvironmentBlueprintConfiguration example domain-id-12345/environment-blueprint-id-54321 * ``` */ class EnvironmentBlueprintConfiguration extends pulumi.CustomResource { /** * Get an existing EnvironmentBlueprintConfiguration 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 EnvironmentBlueprintConfiguration(name, state, { ...opts, id: id }); } /** * Returns true if the given object is an instance of EnvironmentBlueprintConfiguration. 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'] === EnvironmentBlueprintConfiguration.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["domainId"] = state?.domainId; resourceInputs["enabledRegions"] = state?.enabledRegions; resourceInputs["environmentBlueprintId"] = state?.environmentBlueprintId; resourceInputs["manageAccessRoleArn"] = state?.manageAccessRoleArn; resourceInputs["provisioningRoleArn"] = state?.provisioningRoleArn; resourceInputs["region"] = state?.region; resourceInputs["regionalParameters"] = state?.regionalParameters; } else { const args = argsOrState; if (args?.domainId === undefined && !opts.urn) { throw new Error("Missing required property 'domainId'"); } if (args?.enabledRegions === undefined && !opts.urn) { throw new Error("Missing required property 'enabledRegions'"); } if (args?.environmentBlueprintId === undefined && !opts.urn) { throw new Error("Missing required property 'environmentBlueprintId'"); } resourceInputs["domainId"] = args?.domainId; resourceInputs["enabledRegions"] = args?.enabledRegions; resourceInputs["environmentBlueprintId"] = args?.environmentBlueprintId; resourceInputs["manageAccessRoleArn"] = args?.manageAccessRoleArn; resourceInputs["provisioningRoleArn"] = args?.provisioningRoleArn; resourceInputs["region"] = args?.region; resourceInputs["regionalParameters"] = args?.regionalParameters; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(EnvironmentBlueprintConfiguration.__pulumiType, name, resourceInputs, opts); } } exports.EnvironmentBlueprintConfiguration = EnvironmentBlueprintConfiguration; /** @internal */ EnvironmentBlueprintConfiguration.__pulumiType = 'aws:datazone/environmentBlueprintConfiguration:EnvironmentBlueprintConfiguration'; //# sourceMappingURL=environmentBlueprintConfiguration.js.map