aws.datazone.EnvironmentBlueprintConfiguration
Explore with Pulumi AI
Resource for managing an AWS DataZone Environment Blueprint Configuration.
Example Usage
Basic Usage
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 pulumi
import pulumi_aws as aws
example = aws.datazone.Domain("example",
name="example_domain",
domain_execution_role=domain_execution_role["arn"])
default_data_lake = aws.datazone.get_environment_blueprint_output(domain_id=example.id,
name="DefaultDataLake",
managed=True)
example_environment_blueprint_configuration = aws.datazone.EnvironmentBlueprintConfiguration("example",
domain_id=example.id,
environment_blueprint_id=default_data_lake.id,
enabled_regions=["us-east-1"],
regional_parameters={
"us-east-1": {
"s3Location": "s3://my-amazon-datazone-bucket",
},
})
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/datazone"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := datazone.NewDomain(ctx, "example", &datazone.DomainArgs{
Name: pulumi.String("example_domain"),
DomainExecutionRole: pulumi.Any(domainExecutionRole.Arn),
})
if err != nil {
return err
}
defaultDataLake := datazone.GetEnvironmentBlueprintOutput(ctx, datazone.GetEnvironmentBlueprintOutputArgs{
DomainId: example.ID(),
Name: pulumi.String("DefaultDataLake"),
Managed: pulumi.Bool(true),
}, nil)
_, err = datazone.NewEnvironmentBlueprintConfiguration(ctx, "example", &datazone.EnvironmentBlueprintConfigurationArgs{
DomainId: example.ID(),
EnvironmentBlueprintId: pulumi.String(defaultDataLake.ApplyT(func(defaultDataLake datazone.GetEnvironmentBlueprintResult) (*string, error) {
return &defaultDataLake.Id, nil
}).(pulumi.StringPtrOutput)),
EnabledRegions: pulumi.StringArray{
pulumi.String("us-east-1"),
},
RegionalParameters: pulumi.StringMapMap{
"us-east-1": pulumi.StringMap{
"s3Location": pulumi.String("s3://my-amazon-datazone-bucket"),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.DataZone.Domain("example", new()
{
Name = "example_domain",
DomainExecutionRole = domainExecutionRole.Arn,
});
var defaultDataLake = Aws.DataZone.GetEnvironmentBlueprint.Invoke(new()
{
DomainId = example.Id,
Name = "DefaultDataLake",
Managed = true,
});
var exampleEnvironmentBlueprintConfiguration = new Aws.DataZone.EnvironmentBlueprintConfiguration("example", new()
{
DomainId = example.Id,
EnvironmentBlueprintId = defaultDataLake.Apply(getEnvironmentBlueprintResult => getEnvironmentBlueprintResult.Id),
EnabledRegions = new[]
{
"us-east-1",
},
RegionalParameters =
{
{ "us-east-1",
{
{ "s3Location", "s3://my-amazon-datazone-bucket" },
} },
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.datazone.Domain;
import com.pulumi.aws.datazone.DomainArgs;
import com.pulumi.aws.datazone.DatazoneFunctions;
import com.pulumi.aws.datazone.inputs.GetEnvironmentBlueprintArgs;
import com.pulumi.aws.datazone.EnvironmentBlueprintConfiguration;
import com.pulumi.aws.datazone.EnvironmentBlueprintConfigurationArgs;
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 Domain("example", DomainArgs.builder()
.name("example_domain")
.domainExecutionRole(domainExecutionRole.arn())
.build());
final var defaultDataLake = DatazoneFunctions.getEnvironmentBlueprint(GetEnvironmentBlueprintArgs.builder()
.domainId(example.id())
.name("DefaultDataLake")
.managed(true)
.build());
var exampleEnvironmentBlueprintConfiguration = new EnvironmentBlueprintConfiguration("exampleEnvironmentBlueprintConfiguration", EnvironmentBlueprintConfigurationArgs.builder()
.domainId(example.id())
.environmentBlueprintId(defaultDataLake.applyValue(getEnvironmentBlueprintResult -> getEnvironmentBlueprintResult).applyValue(defaultDataLake -> defaultDataLake.applyValue(getEnvironmentBlueprintResult -> getEnvironmentBlueprintResult.id())))
.enabledRegions("us-east-1")
.regionalParameters(Map.of("us-east-1", Map.of("s3Location", "s3://my-amazon-datazone-bucket")))
.build());
}
}
resources:
example:
type: aws:datazone:Domain
properties:
name: example_domain
domainExecutionRole: ${domainExecutionRole.arn}
exampleEnvironmentBlueprintConfiguration:
type: aws:datazone:EnvironmentBlueprintConfiguration
name: example
properties:
domainId: ${example.id}
environmentBlueprintId: ${defaultDataLake.id}
enabledRegions:
- us-east-1
regionalParameters:
us-east-1:
s3Location: s3://my-amazon-datazone-bucket
variables:
defaultDataLake:
fn::invoke:
Function: aws:datazone:getEnvironmentBlueprint
Arguments:
domainId: ${example.id}
name: DefaultDataLake
managed: true
Create EnvironmentBlueprintConfiguration Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new EnvironmentBlueprintConfiguration(name: string, args: EnvironmentBlueprintConfigurationArgs, opts?: CustomResourceOptions);
@overload
def EnvironmentBlueprintConfiguration(resource_name: str,
args: EnvironmentBlueprintConfigurationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def EnvironmentBlueprintConfiguration(resource_name: str,
opts: Optional[ResourceOptions] = None,
domain_id: Optional[str] = None,
enabled_regions: Optional[Sequence[str]] = None,
environment_blueprint_id: Optional[str] = None,
manage_access_role_arn: Optional[str] = None,
provisioning_role_arn: Optional[str] = None,
regional_parameters: Optional[Mapping[str, Mapping[str, str]]] = None)
func NewEnvironmentBlueprintConfiguration(ctx *Context, name string, args EnvironmentBlueprintConfigurationArgs, opts ...ResourceOption) (*EnvironmentBlueprintConfiguration, error)
public EnvironmentBlueprintConfiguration(string name, EnvironmentBlueprintConfigurationArgs args, CustomResourceOptions? opts = null)
public EnvironmentBlueprintConfiguration(String name, EnvironmentBlueprintConfigurationArgs args)
public EnvironmentBlueprintConfiguration(String name, EnvironmentBlueprintConfigurationArgs args, CustomResourceOptions options)
type: aws:datazone:EnvironmentBlueprintConfiguration
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args EnvironmentBlueprintConfigurationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args EnvironmentBlueprintConfigurationArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args EnvironmentBlueprintConfigurationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args EnvironmentBlueprintConfigurationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args EnvironmentBlueprintConfigurationArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var environmentBlueprintConfigurationResource = new Aws.DataZone.EnvironmentBlueprintConfiguration("environmentBlueprintConfigurationResource", new()
{
DomainId = "string",
EnabledRegions = new[]
{
"string",
},
EnvironmentBlueprintId = "string",
ManageAccessRoleArn = "string",
ProvisioningRoleArn = "string",
RegionalParameters =
{
{ "string",
{
{ "string", "string" },
} },
},
});
example, err := datazone.NewEnvironmentBlueprintConfiguration(ctx, "environmentBlueprintConfigurationResource", &datazone.EnvironmentBlueprintConfigurationArgs{
DomainId: pulumi.String("string"),
EnabledRegions: pulumi.StringArray{
pulumi.String("string"),
},
EnvironmentBlueprintId: pulumi.String("string"),
ManageAccessRoleArn: pulumi.String("string"),
ProvisioningRoleArn: pulumi.String("string"),
RegionalParameters: pulumi.StringMapMap{
"string": pulumi.StringMap{
"string": pulumi.String("string"),
},
},
})
var environmentBlueprintConfigurationResource = new EnvironmentBlueprintConfiguration("environmentBlueprintConfigurationResource", EnvironmentBlueprintConfigurationArgs.builder()
.domainId("string")
.enabledRegions("string")
.environmentBlueprintId("string")
.manageAccessRoleArn("string")
.provisioningRoleArn("string")
.regionalParameters(Map.of("string", Map.of("string", "string")))
.build());
environment_blueprint_configuration_resource = aws.datazone.EnvironmentBlueprintConfiguration("environmentBlueprintConfigurationResource",
domain_id="string",
enabled_regions=["string"],
environment_blueprint_id="string",
manage_access_role_arn="string",
provisioning_role_arn="string",
regional_parameters={
"string": {
"string": "string",
},
})
const environmentBlueprintConfigurationResource = new aws.datazone.EnvironmentBlueprintConfiguration("environmentBlueprintConfigurationResource", {
domainId: "string",
enabledRegions: ["string"],
environmentBlueprintId: "string",
manageAccessRoleArn: "string",
provisioningRoleArn: "string",
regionalParameters: {
string: {
string: "string",
},
},
});
type: aws:datazone:EnvironmentBlueprintConfiguration
properties:
domainId: string
enabledRegions:
- string
environmentBlueprintId: string
manageAccessRoleArn: string
provisioningRoleArn: string
regionalParameters:
string:
string: string
EnvironmentBlueprintConfiguration Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The EnvironmentBlueprintConfiguration resource accepts the following input properties:
- Domain
Id string - ID of the Domain.
- Enabled
Regions List<string> Regions in which the blueprint is enabled
The following arguments are optional:
- Environment
Blueprint stringId - ID of the Environment Blueprint
- Manage
Access stringRole Arn - ARN of the manage access role with which this blueprint is created.
- Provisioning
Role stringArn - ARN of the provisioning role with which this blueprint is created.
- Regional
Parameters Dictionary<string, ImmutableDictionary<string, string>> - Parameters for each region in which the blueprint is enabled
- Domain
Id string - ID of the Domain.
- Enabled
Regions []string Regions in which the blueprint is enabled
The following arguments are optional:
- Environment
Blueprint stringId - ID of the Environment Blueprint
- Manage
Access stringRole Arn - ARN of the manage access role with which this blueprint is created.
- Provisioning
Role stringArn - ARN of the provisioning role with which this blueprint is created.
- Regional
Parameters map[string]map[string]string - Parameters for each region in which the blueprint is enabled
- domain
Id String - ID of the Domain.
- enabled
Regions List<String> Regions in which the blueprint is enabled
The following arguments are optional:
- environment
Blueprint StringId - ID of the Environment Blueprint
- manage
Access StringRole Arn - ARN of the manage access role with which this blueprint is created.
- provisioning
Role StringArn - ARN of the provisioning role with which this blueprint is created.
- regional
Parameters Map<String,Map<String,String>> - Parameters for each region in which the blueprint is enabled
- domain
Id string - ID of the Domain.
- enabled
Regions string[] Regions in which the blueprint is enabled
The following arguments are optional:
- environment
Blueprint stringId - ID of the Environment Blueprint
- manage
Access stringRole Arn - ARN of the manage access role with which this blueprint is created.
- provisioning
Role stringArn - ARN of the provisioning role with which this blueprint is created.
- regional
Parameters {[key: string]: {[key: string]: string}} - Parameters for each region in which the blueprint is enabled
- domain_
id str - ID of the Domain.
- enabled_
regions Sequence[str] Regions in which the blueprint is enabled
The following arguments are optional:
- environment_
blueprint_ strid - ID of the Environment Blueprint
- manage_
access_ strrole_ arn - ARN of the manage access role with which this blueprint is created.
- provisioning_
role_ strarn - ARN of the provisioning role with which this blueprint is created.
- regional_
parameters Mapping[str, Mapping[str, str]] - Parameters for each region in which the blueprint is enabled
- domain
Id String - ID of the Domain.
- enabled
Regions List<String> Regions in which the blueprint is enabled
The following arguments are optional:
- environment
Blueprint StringId - ID of the Environment Blueprint
- manage
Access StringRole Arn - ARN of the manage access role with which this blueprint is created.
- provisioning
Role StringArn - ARN of the provisioning role with which this blueprint is created.
- regional
Parameters Map<Map<String>> - Parameters for each region in which the blueprint is enabled
Outputs
All input properties are implicitly available as output properties. Additionally, the EnvironmentBlueprintConfiguration resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing EnvironmentBlueprintConfiguration Resource
Get an existing EnvironmentBlueprintConfiguration resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: EnvironmentBlueprintConfigurationState, opts?: CustomResourceOptions): EnvironmentBlueprintConfiguration
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
domain_id: Optional[str] = None,
enabled_regions: Optional[Sequence[str]] = None,
environment_blueprint_id: Optional[str] = None,
manage_access_role_arn: Optional[str] = None,
provisioning_role_arn: Optional[str] = None,
regional_parameters: Optional[Mapping[str, Mapping[str, str]]] = None) -> EnvironmentBlueprintConfiguration
func GetEnvironmentBlueprintConfiguration(ctx *Context, name string, id IDInput, state *EnvironmentBlueprintConfigurationState, opts ...ResourceOption) (*EnvironmentBlueprintConfiguration, error)
public static EnvironmentBlueprintConfiguration Get(string name, Input<string> id, EnvironmentBlueprintConfigurationState? state, CustomResourceOptions? opts = null)
public static EnvironmentBlueprintConfiguration get(String name, Output<String> id, EnvironmentBlueprintConfigurationState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Domain
Id string - ID of the Domain.
- Enabled
Regions List<string> Regions in which the blueprint is enabled
The following arguments are optional:
- Environment
Blueprint stringId - ID of the Environment Blueprint
- Manage
Access stringRole Arn - ARN of the manage access role with which this blueprint is created.
- Provisioning
Role stringArn - ARN of the provisioning role with which this blueprint is created.
- Regional
Parameters Dictionary<string, ImmutableDictionary<string, string>> - Parameters for each region in which the blueprint is enabled
- Domain
Id string - ID of the Domain.
- Enabled
Regions []string Regions in which the blueprint is enabled
The following arguments are optional:
- Environment
Blueprint stringId - ID of the Environment Blueprint
- Manage
Access stringRole Arn - ARN of the manage access role with which this blueprint is created.
- Provisioning
Role stringArn - ARN of the provisioning role with which this blueprint is created.
- Regional
Parameters map[string]map[string]string - Parameters for each region in which the blueprint is enabled
- domain
Id String - ID of the Domain.
- enabled
Regions List<String> Regions in which the blueprint is enabled
The following arguments are optional:
- environment
Blueprint StringId - ID of the Environment Blueprint
- manage
Access StringRole Arn - ARN of the manage access role with which this blueprint is created.
- provisioning
Role StringArn - ARN of the provisioning role with which this blueprint is created.
- regional
Parameters Map<String,Map<String,String>> - Parameters for each region in which the blueprint is enabled
- domain
Id string - ID of the Domain.
- enabled
Regions string[] Regions in which the blueprint is enabled
The following arguments are optional:
- environment
Blueprint stringId - ID of the Environment Blueprint
- manage
Access stringRole Arn - ARN of the manage access role with which this blueprint is created.
- provisioning
Role stringArn - ARN of the provisioning role with which this blueprint is created.
- regional
Parameters {[key: string]: {[key: string]: string}} - Parameters for each region in which the blueprint is enabled
- domain_
id str - ID of the Domain.
- enabled_
regions Sequence[str] Regions in which the blueprint is enabled
The following arguments are optional:
- environment_
blueprint_ strid - ID of the Environment Blueprint
- manage_
access_ strrole_ arn - ARN of the manage access role with which this blueprint is created.
- provisioning_
role_ strarn - ARN of the provisioning role with which this blueprint is created.
- regional_
parameters Mapping[str, Mapping[str, str]] - Parameters for each region in which the blueprint is enabled
- domain
Id String - ID of the Domain.
- enabled
Regions List<String> Regions in which the blueprint is enabled
The following arguments are optional:
- environment
Blueprint StringId - ID of the Environment Blueprint
- manage
Access StringRole Arn - ARN of the manage access role with which this blueprint is created.
- provisioning
Role StringArn - ARN of the provisioning role with which this blueprint is created.
- regional
Parameters Map<Map<String>> - Parameters for each region in which the blueprint is enabled
Import
Using pulumi import
, import DataZone Environment Blueprint Configuration using the domain_id
and environment_blueprint_id
, separated by a /
. For example:
$ pulumi import aws:datazone/environmentBlueprintConfiguration:EnvironmentBlueprintConfiguration example domain-id-12345/environment-blueprint-id-54321
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.