
com.pulumi.aws.datazone.Glossary Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws Show documentation
Show all versions of aws Show documentation
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.aws.datazone;
import com.pulumi.aws.Utilities;
import com.pulumi.aws.datazone.GlossaryArgs;
import com.pulumi.aws.datazone.inputs.GlossaryState;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Export;
import com.pulumi.core.annotations.ResourceType;
import com.pulumi.core.internal.Codegen;
import java.lang.String;
import java.util.Optional;
import javax.annotation.Nullable;
/**
* Resource for managing an AWS DataZone Glossary.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* 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());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
* ### Basic Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* 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());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
* ## 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
* ```
*
*/
@ResourceType(type="aws:datazone/glossary:Glossary")
public class Glossary extends com.pulumi.resources.CustomResource {
/**
* Description of the glossary. Must have a length between 0 and 4096.
*
*/
@Export(name="description", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> description;
/**
* @return Description of the glossary. Must have a length between 0 and 4096.
*
*/
public Output> description() {
return Codegen.optional(this.description);
}
@Export(name="domainIdentifier", refs={String.class}, tree="[0]")
private Output domainIdentifier;
public Output domainIdentifier() {
return this.domainIdentifier;
}
/**
* Name of the glossary. Must have length between 1 and 256.
*
*/
@Export(name="name", refs={String.class}, tree="[0]")
private Output name;
/**
* @return Name of the glossary. Must have length between 1 and 256.
*
*/
public Output name() {
return this.name;
}
/**
* ID of the project that owns business glossary. Must follow regex of ^[a-zA-Z0-9_-]{1,36}$.
*
* The following arguments are optional:
*
*/
@Export(name="owningProjectIdentifier", refs={String.class}, tree="[0]")
private Output owningProjectIdentifier;
/**
* @return ID of the project that owns business glossary. Must follow regex of ^[a-zA-Z0-9_-]{1,36}$.
*
* The following arguments are optional:
*
*/
public Output owningProjectIdentifier() {
return this.owningProjectIdentifier;
}
/**
* Status of business glossary. Valid values are DISABLED and ENABLED.
*
*/
@Export(name="status", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> status;
/**
* @return Status of business glossary. Valid values are DISABLED and ENABLED.
*
*/
public Output> status() {
return Codegen.optional(this.status);
}
/**
*
* @param name The _unique_ name of the resulting resource.
*/
public Glossary(java.lang.String name) {
this(name, GlossaryArgs.Empty);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
*/
public Glossary(java.lang.String name, GlossaryArgs args) {
this(name, args, null);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
* @param options A bag of options that control this resource's behavior.
*/
public Glossary(java.lang.String name, GlossaryArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("aws:datazone/glossary:Glossary", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false);
}
private Glossary(java.lang.String name, Output id, @Nullable GlossaryState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("aws:datazone/glossary:Glossary", name, state, makeResourceOptions(options, id), false);
}
private static GlossaryArgs makeArgs(GlossaryArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
if (options != null && options.getUrn().isPresent()) {
return null;
}
return args == null ? GlossaryArgs.Empty : args;
}
private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) {
var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder()
.version(Utilities.getVersion())
.build();
return com.pulumi.resources.CustomResourceOptions.merge(defaultOptions, options, id);
}
/**
* Get an existing Host 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
* @param options Optional settings to control the behavior of the CustomResource.
*/
public static Glossary get(java.lang.String name, Output id, @Nullable GlossaryState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
return new Glossary(name, id, state, options);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy