com.pulumi.aws.datazone.kotlin.EnvironmentProfile.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-kotlin Show documentation
Show all versions of pulumi-aws-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.aws.datazone.kotlin
import com.pulumi.aws.datazone.kotlin.outputs.EnvironmentProfileUserParameter
import com.pulumi.aws.datazone.kotlin.outputs.EnvironmentProfileUserParameter.Companion.toKotlin
import com.pulumi.core.Output
import com.pulumi.kotlin.KotlinCustomResource
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.ResourceMapper
import com.pulumi.kotlin.options.CustomResourceOptions
import com.pulumi.kotlin.options.CustomResourceOptionsBuilder
import com.pulumi.resources.Resource
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
/**
* Builder for [EnvironmentProfile].
*/
@PulumiTagMarker
public class EnvironmentProfileResourceBuilder internal constructor() {
public var name: String? = null
public var args: EnvironmentProfileArgs = EnvironmentProfileArgs()
public var opts: CustomResourceOptions = CustomResourceOptions()
/**
* @param name The _unique_ name of the resulting resource.
*/
public fun name(`value`: String) {
this.name = value
}
/**
* @param block The arguments to use to populate this resource's properties.
*/
public suspend fun args(block: suspend EnvironmentProfileArgsBuilder.() -> Unit) {
val builder = EnvironmentProfileArgsBuilder()
block(builder)
this.args = builder.build()
}
/**
* @param block A bag of options that control this resource's behavior.
*/
public suspend fun opts(block: suspend CustomResourceOptionsBuilder.() -> Unit) {
this.opts = com.pulumi.kotlin.options.CustomResourceOptions.opts(block)
}
internal fun build(): EnvironmentProfile {
val builtJavaResource = com.pulumi.aws.datazone.EnvironmentProfile(
this.name,
this.args.toJava(),
this.opts.toJava(),
)
return EnvironmentProfile(builtJavaResource)
}
}
/**
* Resource for managing an AWS DataZone Environment Profile.
* ## Example Usage
* ### Basic Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
* const domainExecutionRole = new aws.iam.Role("domain_execution_role", {
* name: "example-name",
* assumeRolePolicy: JSON.stringify({
* Version: "2012-10-17",
* Statement: [
* {
* Action: [
* "sts:AssumeRole",
* "sts:TagSession",
* ],
* Effect: "Allow",
* Principal: {
* Service: "datazone.amazonaws.com",
* },
* },
* {
* Action: [
* "sts:AssumeRole",
* "sts:TagSession",
* ],
* Effect: "Allow",
* Principal: {
* Service: "cloudformation.amazonaws.com",
* },
* },
* ],
* }),
* inlinePolicies: [{
* name: "example-name",
* policy: JSON.stringify({
* Version: "2012-10-17",
* Statement: [{
* Action: [
* "datazone:*",
* "ram:*",
* "sso:*",
* "kms:*",
* ],
* Effect: "Allow",
* Resource: "*",
* }],
* }),
* }],
* });
* const testDomain = new aws.datazone.Domain("test", {
* name: "example-name",
* domainExecutionRole: domainExecutionRole.arn,
* });
* const testSecurityGroup = new aws.ec2.SecurityGroup("test", {name: "example-name"});
* const testProject = new aws.datazone.Project("test", {
* domainIdentifier: testDomain.id,
* glossaryTerms: ["2N8w6XJCwZf"],
* name: "example-name",
* description: "desc",
* skipDeletionCheck: true,
* });
* const test = aws.getCallerIdentity({});
* const testGetRegion = aws.getRegion({});
* const testGetEnvironmentBlueprint = aws.datazone.getEnvironmentBlueprintOutput({
* domainId: testDomain.id,
* name: "DefaultDataLake",
* managed: true,
* });
* const testEnvironmentBlueprintConfiguration = new aws.datazone.EnvironmentBlueprintConfiguration("test", {
* domainId: testDomain.id,
* environmentBlueprintId: testGetEnvironmentBlueprint.apply(testGetEnvironmentBlueprint => testGetEnvironmentBlueprint.id),
* provisioningRoleArn: domainExecutionRole.arn,
* enabledRegions: [testGetRegion.then(testGetRegion => testGetRegion.name)],
* });
* const testEnvironmentProfile = new aws.datazone.EnvironmentProfile("test", {
* awsAccountId: test.then(test => test.accountId),
* awsAccountRegion: testGetRegion.then(testGetRegion => testGetRegion.name),
* description: "description",
* environmentBlueprintIdentifier: testGetEnvironmentBlueprint.apply(testGetEnvironmentBlueprint => testGetEnvironmentBlueprint.id),
* name: "example-name",
* projectIdentifier: testProject.id,
* domainIdentifier: testDomain.id,
* userParameters: [{
* name: "consumerGlueDbName",
* value: "value",
* }],
* });
* ```
* ```python
* import pulumi
* import json
* import pulumi_aws as aws
* domain_execution_role = aws.iam.Role("domain_execution_role",
* name="example-name",
* assume_role_policy=json.dumps({
* "Version": "2012-10-17",
* "Statement": [
* {
* "Action": [
* "sts:AssumeRole",
* "sts:TagSession",
* ],
* "Effect": "Allow",
* "Principal": {
* "Service": "datazone.amazonaws.com",
* },
* },
* {
* "Action": [
* "sts:AssumeRole",
* "sts:TagSession",
* ],
* "Effect": "Allow",
* "Principal": {
* "Service": "cloudformation.amazonaws.com",
* },
* },
* ],
* }),
* inline_policies=[{
* "name": "example-name",
* "policy": json.dumps({
* "Version": "2012-10-17",
* "Statement": [{
* "Action": [
* "datazone:*",
* "ram:*",
* "sso:*",
* "kms:*",
* ],
* "Effect": "Allow",
* "Resource": "*",
* }],
* }),
* }])
* test_domain = aws.datazone.Domain("test",
* name="example-name",
* domain_execution_role=domain_execution_role.arn)
* test_security_group = aws.ec2.SecurityGroup("test", name="example-name")
* test_project = aws.datazone.Project("test",
* domain_identifier=test_domain.id,
* glossary_terms=["2N8w6XJCwZf"],
* name="example-name",
* description="desc",
* skip_deletion_check=True)
* test = aws.get_caller_identity()
* test_get_region = aws.get_region()
* test_get_environment_blueprint = aws.datazone.get_environment_blueprint_output(domain_id=test_domain.id,
* name="DefaultDataLake",
* managed=True)
* test_environment_blueprint_configuration = aws.datazone.EnvironmentBlueprintConfiguration("test",
* domain_id=test_domain.id,
* environment_blueprint_id=test_get_environment_blueprint.id,
* provisioning_role_arn=domain_execution_role.arn,
* enabled_regions=[test_get_region.name])
* test_environment_profile = aws.datazone.EnvironmentProfile("test",
* aws_account_id=test.account_id,
* aws_account_region=test_get_region.name,
* description="description",
* environment_blueprint_identifier=test_get_environment_blueprint.id,
* name="example-name",
* project_identifier=test_project.id,
* domain_identifier=test_domain.id,
* user_parameters=[{
* "name": "consumerGlueDbName",
* "value": "value",
* }])
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using System.Text.Json;
* using Pulumi;
* using Aws = Pulumi.Aws;
* return await Deployment.RunAsync(() =>
* {
* var domainExecutionRole = new Aws.Iam.Role("domain_execution_role", new()
* {
* Name = "example-name",
* AssumeRolePolicy = JsonSerializer.Serialize(new Dictionary
* {
* ["Version"] = "2012-10-17",
* ["Statement"] = new[]
* {
* new Dictionary
* {
* ["Action"] = new[]
* {
* "sts:AssumeRole",
* "sts:TagSession",
* },
* ["Effect"] = "Allow",
* ["Principal"] = new Dictionary
* {
* ["Service"] = "datazone.amazonaws.com",
* },
* },
* new Dictionary
* {
* ["Action"] = new[]
* {
* "sts:AssumeRole",
* "sts:TagSession",
* },
* ["Effect"] = "Allow",
* ["Principal"] = new Dictionary
* {
* ["Service"] = "cloudformation.amazonaws.com",
* },
* },
* },
* }),
* InlinePolicies = new[]
* {
* new Aws.Iam.Inputs.RoleInlinePolicyArgs
* {
* Name = "example-name",
* Policy = JsonSerializer.Serialize(new Dictionary
* {
* ["Version"] = "2012-10-17",
* ["Statement"] = new[]
* {
* new Dictionary
* {
* ["Action"] = new[]
* {
* "datazone:*",
* "ram:*",
* "sso:*",
* "kms:*",
* },
* ["Effect"] = "Allow",
* ["Resource"] = "*",
* },
* },
* }),
* },
* },
* });
* var testDomain = new Aws.DataZone.Domain("test", new()
* {
* Name = "example-name",
* DomainExecutionRole = domainExecutionRole.Arn,
* });
* var testSecurityGroup = new Aws.Ec2.SecurityGroup("test", new()
* {
* Name = "example-name",
* });
* var testProject = new Aws.DataZone.Project("test", new()
* {
* DomainIdentifier = testDomain.Id,
* GlossaryTerms = new[]
* {
* "2N8w6XJCwZf",
* },
* Name = "example-name",
* Description = "desc",
* SkipDeletionCheck = true,
* });
* var test = Aws.GetCallerIdentity.Invoke();
* var testGetRegion = Aws.GetRegion.Invoke();
* var testGetEnvironmentBlueprint = Aws.DataZone.GetEnvironmentBlueprint.Invoke(new()
* {
* DomainId = testDomain.Id,
* Name = "DefaultDataLake",
* Managed = true,
* });
* var testEnvironmentBlueprintConfiguration = new Aws.DataZone.EnvironmentBlueprintConfiguration("test", new()
* {
* DomainId = testDomain.Id,
* EnvironmentBlueprintId = testGetEnvironmentBlueprint.Apply(getEnvironmentBlueprintResult => getEnvironmentBlueprintResult.Id),
* ProvisioningRoleArn = domainExecutionRole.Arn,
* EnabledRegions = new[]
* {
* testGetRegion.Apply(getRegionResult => getRegionResult.Name),
* },
* });
* var testEnvironmentProfile = new Aws.DataZone.EnvironmentProfile("test", new()
* {
* AwsAccountId = test.Apply(getCallerIdentityResult => getCallerIdentityResult.AccountId),
* AwsAccountRegion = testGetRegion.Apply(getRegionResult => getRegionResult.Name),
* Description = "description",
* EnvironmentBlueprintIdentifier = testGetEnvironmentBlueprint.Apply(getEnvironmentBlueprintResult => getEnvironmentBlueprintResult.Id),
* Name = "example-name",
* ProjectIdentifier = testProject.Id,
* DomainIdentifier = testDomain.Id,
* UserParameters = new[]
* {
* new Aws.DataZone.Inputs.EnvironmentProfileUserParameterArgs
* {
* Name = "consumerGlueDbName",
* Value = "value",
* },
* },
* });
* });
* ```
* ```go
* package main
* import (
* "encoding/json"
* "github.com/pulumi/pulumi-aws/sdk/v6/go/aws"
* "github.com/pulumi/pulumi-aws/sdk/v6/go/aws/datazone"
* "github.com/pulumi/pulumi-aws/sdk/v6/go/aws/ec2"
* "github.com/pulumi/pulumi-aws/sdk/v6/go/aws/iam"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* tmpJSON0, err := json.Marshal(map[string]interface{}{
* "Version": "2012-10-17",
* "Statement": []map[string]interface{}{
* map[string]interface{}{
* "Action": []string{
* "sts:AssumeRole",
* "sts:TagSession",
* },
* "Effect": "Allow",
* "Principal": map[string]interface{}{
* "Service": "datazone.amazonaws.com",
* },
* },
* map[string]interface{}{
* "Action": []string{
* "sts:AssumeRole",
* "sts:TagSession",
* },
* "Effect": "Allow",
* "Principal": map[string]interface{}{
* "Service": "cloudformation.amazonaws.com",
* },
* },
* },
* })
* if err != nil {
* return err
* }
* json0 := string(tmpJSON0)
* tmpJSON1, err := json.Marshal(map[string]interface{}{
* "Version": "2012-10-17",
* "Statement": []map[string]interface{}{
* map[string]interface{}{
* "Action": []string{
* "datazone:*",
* "ram:*",
* "sso:*",
* "kms:*",
* },
* "Effect": "Allow",
* "Resource": "*",
* },
* },
* })
* if err != nil {
* return err
* }
* json1 := string(tmpJSON1)
* domainExecutionRole, err := iam.NewRole(ctx, "domain_execution_role", &iam.RoleArgs{
* Name: pulumi.String("example-name"),
* AssumeRolePolicy: pulumi.String(json0),
* InlinePolicies: iam.RoleInlinePolicyArray{
* &iam.RoleInlinePolicyArgs{
* Name: pulumi.String("example-name"),
* Policy: pulumi.String(json1),
* },
* },
* })
* if err != nil {
* return err
* }
* testDomain, err := datazone.NewDomain(ctx, "test", &datazone.DomainArgs{
* Name: pulumi.String("example-name"),
* DomainExecutionRole: domainExecutionRole.Arn,
* })
* if err != nil {
* return err
* }
* _, err = ec2.NewSecurityGroup(ctx, "test", &ec2.SecurityGroupArgs{
* Name: pulumi.String("example-name"),
* })
* if err != nil {
* return err
* }
* testProject, err := datazone.NewProject(ctx, "test", &datazone.ProjectArgs{
* DomainIdentifier: testDomain.ID(),
* GlossaryTerms: pulumi.StringArray{
* pulumi.String("2N8w6XJCwZf"),
* },
* Name: pulumi.String("example-name"),
* Description: pulumi.String("desc"),
* SkipDeletionCheck: pulumi.Bool(true),
* })
* if err != nil {
* return err
* }
* test, err := aws.GetCallerIdentity(ctx, &aws.GetCallerIdentityArgs{}, nil)
* if err != nil {
* return err
* }
* testGetRegion, err := aws.GetRegion(ctx, &aws.GetRegionArgs{}, nil)
* if err != nil {
* return err
* }
* testGetEnvironmentBlueprint := datazone.GetEnvironmentBlueprintOutput(ctx, datazone.GetEnvironmentBlueprintOutputArgs{
* DomainId: testDomain.ID(),
* Name: pulumi.String("DefaultDataLake"),
* Managed: pulumi.Bool(true),
* }, nil)
* _, err = datazone.NewEnvironmentBlueprintConfiguration(ctx, "test", &datazone.EnvironmentBlueprintConfigurationArgs{
* DomainId: testDomain.ID(),
* EnvironmentBlueprintId: pulumi.String(testGetEnvironmentBlueprint.ApplyT(func(testGetEnvironmentBlueprint datazone.GetEnvironmentBlueprintResult) (*string, error) {
* return &testGetEnvironmentBlueprint.Id, nil
* }).(pulumi.StringPtrOutput)),
* ProvisioningRoleArn: domainExecutionRole.Arn,
* EnabledRegions: pulumi.StringArray{
* pulumi.String(testGetRegion.Name),
* },
* })
* if err != nil {
* return err
* }
* _, err = datazone.NewEnvironmentProfile(ctx, "test", &datazone.EnvironmentProfileArgs{
* AwsAccountId: pulumi.String(test.AccountId),
* AwsAccountRegion: pulumi.String(testGetRegion.Name),
* Description: pulumi.String("description"),
* EnvironmentBlueprintIdentifier: pulumi.String(testGetEnvironmentBlueprint.ApplyT(func(testGetEnvironmentBlueprint datazone.GetEnvironmentBlueprintResult) (*string, error) {
* return &testGetEnvironmentBlueprint.Id, nil
* }).(pulumi.StringPtrOutput)),
* Name: pulumi.String("example-name"),
* ProjectIdentifier: testProject.ID(),
* DomainIdentifier: testDomain.ID(),
* UserParameters: datazone.EnvironmentProfileUserParameterArray{
* &datazone.EnvironmentProfileUserParameterArgs{
* Name: pulumi.String("consumerGlueDbName"),
* Value: pulumi.String("value"),
* },
* },
* })
* if err != nil {
* return err
* }
* return nil
* })
* }
* ```
* ```java
* package generated_program;
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.iam.Role;
* import com.pulumi.aws.iam.RoleArgs;
* import com.pulumi.aws.iam.inputs.RoleInlinePolicyArgs;
* import com.pulumi.aws.datazone.Domain;
* import com.pulumi.aws.datazone.DomainArgs;
* import com.pulumi.aws.ec2.SecurityGroup;
* import com.pulumi.aws.ec2.SecurityGroupArgs;
* import com.pulumi.aws.datazone.Project;
* import com.pulumi.aws.datazone.ProjectArgs;
* import com.pulumi.aws.AwsFunctions;
* import com.pulumi.aws.inputs.GetCallerIdentityArgs;
* import com.pulumi.aws.inputs.GetRegionArgs;
* 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 com.pulumi.aws.datazone.EnvironmentProfile;
* import com.pulumi.aws.datazone.EnvironmentProfileArgs;
* import com.pulumi.aws.datazone.inputs.EnvironmentProfileUserParameterArgs;
* 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 domainExecutionRole = new Role("domainExecutionRole", RoleArgs.builder()
* .name("example-name")
* .assumeRolePolicy(serializeJson(
* jsonObject(
* jsonProperty("Version", "2012-10-17"),
* jsonProperty("Statement", jsonArray(
* jsonObject(
* jsonProperty("Action", jsonArray(
* "sts:AssumeRole",
* "sts:TagSession"
* )),
* jsonProperty("Effect", "Allow"),
* jsonProperty("Principal", jsonObject(
* jsonProperty("Service", "datazone.amazonaws.com")
* ))
* ),
* jsonObject(
* jsonProperty("Action", jsonArray(
* "sts:AssumeRole",
* "sts:TagSession"
* )),
* jsonProperty("Effect", "Allow"),
* jsonProperty("Principal", jsonObject(
* jsonProperty("Service", "cloudformation.amazonaws.com")
* ))
* )
* ))
* )))
* .inlinePolicies(RoleInlinePolicyArgs.builder()
* .name("example-name")
* .policy(serializeJson(
* jsonObject(
* jsonProperty("Version", "2012-10-17"),
* jsonProperty("Statement", jsonArray(jsonObject(
* jsonProperty("Action", jsonArray(
* "datazone:*",
* "ram:*",
* "sso:*",
* "kms:*"
* )),
* jsonProperty("Effect", "Allow"),
* jsonProperty("Resource", "*")
* )))
* )))
* .build())
* .build());
* var testDomain = new Domain("testDomain", DomainArgs.builder()
* .name("example-name")
* .domainExecutionRole(domainExecutionRole.arn())
* .build());
* var testSecurityGroup = new SecurityGroup("testSecurityGroup", SecurityGroupArgs.builder()
* .name("example-name")
* .build());
* var testProject = new Project("testProject", ProjectArgs.builder()
* .domainIdentifier(testDomain.id())
* .glossaryTerms("2N8w6XJCwZf")
* .name("example-name")
* .description("desc")
* .skipDeletionCheck(true)
* .build());
* final var test = AwsFunctions.getCallerIdentity();
* final var testGetRegion = AwsFunctions.getRegion();
* final var testGetEnvironmentBlueprint = DatazoneFunctions.getEnvironmentBlueprint(GetEnvironmentBlueprintArgs.builder()
* .domainId(testDomain.id())
* .name("DefaultDataLake")
* .managed(true)
* .build());
* var testEnvironmentBlueprintConfiguration = new EnvironmentBlueprintConfiguration("testEnvironmentBlueprintConfiguration", EnvironmentBlueprintConfigurationArgs.builder()
* .domainId(testDomain.id())
* .environmentBlueprintId(testGetEnvironmentBlueprint.applyValue(getEnvironmentBlueprintResult -> getEnvironmentBlueprintResult).applyValue(testGetEnvironmentBlueprint -> testGetEnvironmentBlueprint.applyValue(getEnvironmentBlueprintResult -> getEnvironmentBlueprintResult.id())))
* .provisioningRoleArn(domainExecutionRole.arn())
* .enabledRegions(testGetRegion.applyValue(getRegionResult -> getRegionResult.name()))
* .build());
* var testEnvironmentProfile = new EnvironmentProfile("testEnvironmentProfile", EnvironmentProfileArgs.builder()
* .awsAccountId(test.applyValue(getCallerIdentityResult -> getCallerIdentityResult.accountId()))
* .awsAccountRegion(testGetRegion.applyValue(getRegionResult -> getRegionResult.name()))
* .description("description")
* .environmentBlueprintIdentifier(testGetEnvironmentBlueprint.applyValue(getEnvironmentBlueprintResult -> getEnvironmentBlueprintResult).applyValue(testGetEnvironmentBlueprint -> testGetEnvironmentBlueprint.applyValue(getEnvironmentBlueprintResult -> getEnvironmentBlueprintResult.id())))
* .name("example-name")
* .projectIdentifier(testProject.id())
* .domainIdentifier(testDomain.id())
* .userParameters(EnvironmentProfileUserParameterArgs.builder()
* .name("consumerGlueDbName")
* .value("value")
* .build())
* .build());
* }
* }
* ```
* ```yaml
* resources:
* domainExecutionRole:
* type: aws:iam:Role
* name: domain_execution_role
* properties:
* name: example-name
* assumeRolePolicy:
* fn::toJSON:
* Version: 2012-10-17
* Statement:
* - Action:
* - sts:AssumeRole
* - sts:TagSession
* Effect: Allow
* Principal:
* Service: datazone.amazonaws.com
* - Action:
* - sts:AssumeRole
* - sts:TagSession
* Effect: Allow
* Principal:
* Service: cloudformation.amazonaws.com
* inlinePolicies:
* - name: example-name
* policy:
* fn::toJSON:
* Version: 2012-10-17
* Statement:
* - Action:
* - datazone:*
* - ram:*
* - sso:*
* - kms:*
* Effect: Allow
* Resource: '*'
* testDomain:
* type: aws:datazone:Domain
* name: test
* properties:
* name: example-name
* domainExecutionRole: ${domainExecutionRole.arn}
* testSecurityGroup:
* type: aws:ec2:SecurityGroup
* name: test
* properties:
* name: example-name
* testProject:
* type: aws:datazone:Project
* name: test
* properties:
* domainIdentifier: ${testDomain.id}
* glossaryTerms:
* - 2N8w6XJCwZf
* name: example-name
* description: desc
* skipDeletionCheck: true
* testEnvironmentBlueprintConfiguration:
* type: aws:datazone:EnvironmentBlueprintConfiguration
* name: test
* properties:
* domainId: ${testDomain.id}
* environmentBlueprintId: ${testGetEnvironmentBlueprint.id}
* provisioningRoleArn: ${domainExecutionRole.arn}
* enabledRegions:
* - ${testGetRegion.name}
* testEnvironmentProfile:
* type: aws:datazone:EnvironmentProfile
* name: test
* properties:
* awsAccountId: ${test.accountId}
* awsAccountRegion: ${testGetRegion.name}
* description: description
* environmentBlueprintIdentifier: ${testGetEnvironmentBlueprint.id}
* name: example-name
* projectIdentifier: ${testProject.id}
* domainIdentifier: ${testDomain.id}
* userParameters:
* - name: consumerGlueDbName
* value: value
* variables:
* test:
* fn::invoke:
* Function: aws:getCallerIdentity
* Arguments: {}
* testGetRegion:
* fn::invoke:
* Function: aws:getRegion
* Arguments: {}
* testGetEnvironmentBlueprint:
* fn::invoke:
* Function: aws:datazone:getEnvironmentBlueprint
* Arguments:
* domainId: ${testDomain.id}
* name: DefaultDataLake
* managed: true
* ```
*
* ## Import
* Using `pulumi import`, import DataZone Environment Profile using a comma-delimited string combining `id` and `domain_identifier`. For example:
* ```sh
* $ pulumi import aws:datazone/environmentProfile:EnvironmentProfile example environment_profile-id-12345678,domain-id-12345678
* ```
*/
public class EnvironmentProfile internal constructor(
override val javaResource: com.pulumi.aws.datazone.EnvironmentProfile,
) : KotlinCustomResource(javaResource, EnvironmentProfileMapper) {
/**
* Id of the AWS account being used.
*/
public val awsAccountId: Output
get() = javaResource.awsAccountId().applyValue({ args0 -> args0 })
/**
* Desired region for environment profile.
*/
public val awsAccountRegion: Output
get() = javaResource.awsAccountRegion().applyValue({ args0 -> args0 })
/**
* Creation time of environment profile.
*/
public val createdAt: Output
get() = javaResource.createdAt().applyValue({ args0 -> args0 })
/**
* Creator of environment profile.
*/
public val createdBy: Output
get() = javaResource.createdBy().applyValue({ args0 -> args0 })
/**
* Description of environment profile.
*/
public val description: Output
get() = javaResource.description().applyValue({ args0 -> args0 })
/**
* Domain Identifier for environment profile.
*/
public val domainIdentifier: Output
get() = javaResource.domainIdentifier().applyValue({ args0 -> args0 })
/**
* ID of the blueprint which the environment will be created with.
*/
public val environmentBlueprintIdentifier: Output
get() = javaResource.environmentBlueprintIdentifier().applyValue({ args0 -> args0 })
/**
* Name of the environment profile.
*/
public val name: Output
get() = javaResource.name().applyValue({ args0 -> args0 })
/**
* Project identifier for environment profile.
* The following arguments are optional:
*/
public val projectIdentifier: Output
get() = javaResource.projectIdentifier().applyValue({ args0 -> args0 })
/**
* Time of last update to environment profile.
*/
public val updatedAt: Output
get() = javaResource.updatedAt().applyValue({ args0 -> args0 })
/**
* Array of user parameters of the environment profile with the following attributes:
*/
public val userParameters: Output>?
get() = javaResource.userParameters().applyValue({ args0 ->
args0.map({ args0 ->
args0.map({ args0 -> args0.let({ args0 -> toKotlin(args0) }) })
}).orElse(null)
})
}
public object EnvironmentProfileMapper : ResourceMapper {
override fun supportsMappingOfType(javaResource: Resource): Boolean =
com.pulumi.aws.datazone.EnvironmentProfile::class == javaResource::class
override fun map(javaResource: Resource): EnvironmentProfile = EnvironmentProfile(
javaResource as
com.pulumi.aws.datazone.EnvironmentProfile,
)
}
/**
* @see [EnvironmentProfile].
* @param name The _unique_ name of the resulting resource.
* @param block Builder for [EnvironmentProfile].
*/
public suspend fun environmentProfile(
name: String,
block: suspend EnvironmentProfileResourceBuilder.() -> Unit,
): EnvironmentProfile {
val builder = EnvironmentProfileResourceBuilder()
builder.name(name)
block(builder)
return builder.build()
}
/**
* @see [EnvironmentProfile].
* @param name The _unique_ name of the resulting resource.
*/
public fun environmentProfile(name: String): EnvironmentProfile {
val builder = EnvironmentProfileResourceBuilder()
builder.name(name)
return builder.build()
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy