Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.pulumi.aws.datazone.kotlin.GlossaryArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.aws.datazone.kotlin
import com.pulumi.aws.datazone.GlossaryArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* Resource for managing an AWS DataZone Glossary.
* ## Example 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 test = 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: test.id,
* glossaryTerms: ["2N8w6XJCwZf"],
* name: "example_name",
* description: "desc",
* skipDeletionCheck: true,
* });
* const testGlossary = new aws.datazone.Glossary("test", {
* description: "description",
* name: "example_name",
* owningProjectIdentifier: testProject.id,
* status: "DISABLED",
* domainIdentifier: testProject.domainIdentifier,
* });
* ```
* ```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 = 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.id,
* glossary_terms=["2N8w6XJCwZf"],
* name="example_name",
* description="desc",
* skip_deletion_check=True)
* test_glossary = aws.datazone.Glossary("test",
* description="description",
* name="example_name",
* owning_project_identifier=test_project.id,
* status="DISABLED",
* domain_identifier=test_project.domain_identifier)
* ```
* ```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 test = 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 = test.Id,
* GlossaryTerms = new[]
* {
* "2N8w6XJCwZf",
* },
* Name = "example_name",
* Description = "desc",
* SkipDeletionCheck = true,
* });
* var testGlossary = new Aws.DataZone.Glossary("test", new()
* {
* Description = "description",
* Name = "example_name",
* OwningProjectIdentifier = testProject.Id,
* Status = "DISABLED",
* DomainIdentifier = testProject.DomainIdentifier,
* });
* });
* ```
* ```go
* package main
* import (
* "encoding/json"
* "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
* }
* test, 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: test.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
* }
* _, err = datazone.NewGlossary(ctx, "test", &datazone.GlossaryArgs{
* Description: pulumi.String("description"),
* Name: pulumi.String("example_name"),
* OwningProjectIdentifier: testProject.ID(),
* Status: pulumi.String("DISABLED"),
* DomainIdentifier: testProject.DomainIdentifier,
* })
* 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.datazone.Glossary;
* import com.pulumi.aws.datazone.GlossaryArgs;
* 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 test = new Domain("test", 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(test.id())
* .glossaryTerms("2N8w6XJCwZf")
* .name("example_name")
* .description("desc")
* .skipDeletionCheck(true)
* .build());
* var testGlossary = new Glossary("testGlossary", GlossaryArgs.builder()
* .description("description")
* .name("example_name")
* .owningProjectIdentifier(testProject.id())
* .status("DISABLED")
* .domainIdentifier(testProject.domainIdentifier())
* .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: '*'
* test:
* type: aws:datazone:Domain
* 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: ${test.id}
* glossaryTerms:
* - 2N8w6XJCwZf
* name: example_name
* description: desc
* skipDeletionCheck: true
* testGlossary:
* type: aws:datazone:Glossary
* name: test
* properties:
* description: description
* name: example_name
* owningProjectIdentifier: ${testProject.id}
* status: DISABLED
* domainIdentifier: ${testProject.domainIdentifier}
* ```
*
* ### Basic Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
* const test = new aws.datazone.Glossary("test", {
* description: "description",
* name: "example_name",
* owningProjectIdentifier: testAwsDatazoneProject.id,
* status: "DISABLED",
* domainIdentifier: testAwsDatazoneProject.domainIdentifier,
* });
* ```
* ```python
* import pulumi
* import pulumi_aws as aws
* test = aws.datazone.Glossary("test",
* description="description",
* name="example_name",
* owning_project_identifier=test_aws_datazone_project["id"],
* status="DISABLED",
* domain_identifier=test_aws_datazone_project["domainIdentifier"])
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Aws = Pulumi.Aws;
* return await Deployment.RunAsync(() =>
* {
* var test = new Aws.DataZone.Glossary("test", new()
* {
* Description = "description",
* Name = "example_name",
* OwningProjectIdentifier = testAwsDatazoneProject.Id,
* Status = "DISABLED",
* DomainIdentifier = testAwsDatazoneProject.DomainIdentifier,
* });
* });
* ```
* ```go
* 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 {
* _, err := datazone.NewGlossary(ctx, "test", &datazone.GlossaryArgs{
* Description: pulumi.String("description"),
* Name: pulumi.String("example_name"),
* OwningProjectIdentifier: pulumi.Any(testAwsDatazoneProject.Id),
* Status: pulumi.String("DISABLED"),
* DomainIdentifier: pulumi.Any(testAwsDatazoneProject.DomainIdentifier),
* })
* 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.datazone.Glossary;
* import com.pulumi.aws.datazone.GlossaryArgs;
* 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 test = new Glossary("test", GlossaryArgs.builder()
* .description("description")
* .name("example_name")
* .owningProjectIdentifier(testAwsDatazoneProject.id())
* .status("DISABLED")
* .domainIdentifier(testAwsDatazoneProject.domainIdentifier())
* .build());
* }
* }
* ```
* ```yaml
* resources:
* test:
* type: aws:datazone:Glossary
* properties:
* description: description
* name: example_name
* owningProjectIdentifier: ${testAwsDatazoneProject.id}
* status: DISABLED
* domainIdentifier: ${testAwsDatazoneProject.domainIdentifier}
* ```
*
* ## Import
* Using `pulumi import`, import DataZone Glossary using the import Datazone Glossary using a comma-delimited string combining the domain id, glossary id, and the id of the project it's under. For example:
* ```sh
* $ pulumi import aws:datazone/glossary:Glossary example domain-id,glossary-id,owning-project-identifier
* ```
* @property description Description of the glossary. Must have a length between 0 and 4096.
* @property domainIdentifier
* @property name Name of the glossary. Must have length between 1 and 256.
* @property owningProjectIdentifier ID of the project that owns business glossary. Must follow regex of ^[a-zA-Z0-9_-]{1,36}$.
* The following arguments are optional:
* @property status Status of business glossary. Valid values are DISABLED and ENABLED.
*/
public data class GlossaryArgs(
public val description: Output? = null,
public val domainIdentifier: Output? = null,
public val name: Output? = null,
public val owningProjectIdentifier: Output? = null,
public val status: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.aws.datazone.GlossaryArgs =
com.pulumi.aws.datazone.GlossaryArgs.builder()
.description(description?.applyValue({ args0 -> args0 }))
.domainIdentifier(domainIdentifier?.applyValue({ args0 -> args0 }))
.name(name?.applyValue({ args0 -> args0 }))
.owningProjectIdentifier(owningProjectIdentifier?.applyValue({ args0 -> args0 }))
.status(status?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [GlossaryArgs].
*/
@PulumiTagMarker
public class GlossaryArgsBuilder internal constructor() {
private var description: Output? = null
private var domainIdentifier: Output? = null
private var name: Output? = null
private var owningProjectIdentifier: Output? = null
private var status: Output? = null
/**
* @param value Description of the glossary. Must have a length between 0 and 4096.
*/
@JvmName("giamqrubhjtgnkeu")
public suspend fun description(`value`: Output) {
this.description = value
}
/**
* @param value
*/
@JvmName("qusqlyhjqmwamnnh")
public suspend fun domainIdentifier(`value`: Output) {
this.domainIdentifier = value
}
/**
* @param value Name of the glossary. Must have length between 1 and 256.
*/
@JvmName("hcptkgjcigmnekwl")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value ID of the project that owns business glossary. Must follow regex of ^[a-zA-Z0-9_-]{1,36}$.
* The following arguments are optional:
*/
@JvmName("xwofrjnoekqwjfga")
public suspend fun owningProjectIdentifier(`value`: Output) {
this.owningProjectIdentifier = value
}
/**
* @param value Status of business glossary. Valid values are DISABLED and ENABLED.
*/
@JvmName("mcjiapnxxqrwwhas")
public suspend fun status(`value`: Output) {
this.status = value
}
/**
* @param value Description of the glossary. Must have a length between 0 and 4096.
*/
@JvmName("ayqftvscsptlnmsc")
public suspend fun description(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.description = mapped
}
/**
* @param value
*/
@JvmName("nfyrhtrbkwhdldhr")
public suspend fun domainIdentifier(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.domainIdentifier = mapped
}
/**
* @param value Name of the glossary. Must have length between 1 and 256.
*/
@JvmName("fwpphamblvlysbqw")
public suspend fun name(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value ID of the project that owns business glossary. Must follow regex of ^[a-zA-Z0-9_-]{1,36}$.
* The following arguments are optional:
*/
@JvmName("knsathbjouujohfx")
public suspend fun owningProjectIdentifier(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.owningProjectIdentifier = mapped
}
/**
* @param value Status of business glossary. Valid values are DISABLED and ENABLED.
*/
@JvmName("hameenhwmddbqcub")
public suspend fun status(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.status = mapped
}
internal fun build(): GlossaryArgs = GlossaryArgs(
description = description,
domainIdentifier = domainIdentifier,
name = name,
owningProjectIdentifier = owningProjectIdentifier,
status = status,
)
}