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.comprehend.inputs.DocumentClassifierState Maven / Gradle / Ivy
Go to download
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.comprehend.inputs;
import com.pulumi.aws.comprehend.inputs.DocumentClassifierInputDataConfigArgs;
import com.pulumi.aws.comprehend.inputs.DocumentClassifierOutputDataConfigArgs;
import com.pulumi.aws.comprehend.inputs.DocumentClassifierVpcConfigArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
public final class DocumentClassifierState extends com.pulumi.resources.ResourceArgs {
public static final DocumentClassifierState Empty = new DocumentClassifierState();
/**
* ARN of the Document Classifier version.
*
*/
@Import(name="arn")
private @Nullable Output arn;
/**
* @return ARN of the Document Classifier version.
*
*/
public Optional> arn() {
return Optional.ofNullable(this.arn);
}
/**
* The ARN for an IAM Role which allows Comprehend to read the training and testing data.
*
*/
@Import(name="dataAccessRoleArn")
private @Nullable Output dataAccessRoleArn;
/**
* @return The ARN for an IAM Role which allows Comprehend to read the training and testing data.
*
*/
public Optional> dataAccessRoleArn() {
return Optional.ofNullable(this.dataAccessRoleArn);
}
/**
* Configuration for the training and testing data.
* See the `input_data_config` Configuration Block section below.
*
*/
@Import(name="inputDataConfig")
private @Nullable Output inputDataConfig;
/**
* @return Configuration for the training and testing data.
* See the `input_data_config` Configuration Block section below.
*
*/
public Optional> inputDataConfig() {
return Optional.ofNullable(this.inputDataConfig);
}
/**
* Two-letter language code for the language.
* One of `en`, `es`, `fr`, `it`, `de`, or `pt`.
*
*/
@Import(name="languageCode")
private @Nullable Output languageCode;
/**
* @return Two-letter language code for the language.
* One of `en`, `es`, `fr`, `it`, `de`, or `pt`.
*
*/
public Optional> languageCode() {
return Optional.ofNullable(this.languageCode);
}
/**
* The document classification mode.
* One of `MULTI_CLASS` or `MULTI_LABEL`.
* `MULTI_CLASS` is also known as "Single Label" in the AWS Console.
*
*/
@Import(name="mode")
private @Nullable Output mode;
/**
* @return The document classification mode.
* One of `MULTI_CLASS` or `MULTI_LABEL`.
* `MULTI_CLASS` is also known as "Single Label" in the AWS Console.
*
*/
public Optional> mode() {
return Optional.ofNullable(this.mode);
}
/**
* KMS Key used to encrypt trained Document Classifiers.
* Can be a KMS Key ID or a KMS Key ARN.
*
*/
@Import(name="modelKmsKeyId")
private @Nullable Output modelKmsKeyId;
/**
* @return KMS Key used to encrypt trained Document Classifiers.
* Can be a KMS Key ID or a KMS Key ARN.
*
*/
public Optional> modelKmsKeyId() {
return Optional.ofNullable(this.modelKmsKeyId);
}
/**
* Name for the Document Classifier.
* Has a maximum length of 63 characters.
* Can contain upper- and lower-case letters, numbers, and hypen (`-`).
*
* The following arguments are optional:
*
*/
@Import(name="name")
private @Nullable Output name;
/**
* @return Name for the Document Classifier.
* Has a maximum length of 63 characters.
* Can contain upper- and lower-case letters, numbers, and hypen (`-`).
*
* The following arguments are optional:
*
*/
public Optional> name() {
return Optional.ofNullable(this.name);
}
/**
* Configuration for the output results of training.
* See the `output_data_config` Configuration Block section below.
*
*/
@Import(name="outputDataConfig")
private @Nullable Output outputDataConfig;
/**
* @return Configuration for the output results of training.
* See the `output_data_config` Configuration Block section below.
*
*/
public Optional> outputDataConfig() {
return Optional.ofNullable(this.outputDataConfig);
}
/**
* A map of tags to assign to the resource. If configured with a provider `default_tags` Configuration Block present, tags with matching keys will overwrite those defined at the provider-level.
*
*/
@Import(name="tags")
private @Nullable Output> tags;
/**
* @return A map of tags to assign to the resource. If configured with a provider `default_tags` Configuration Block present, tags with matching keys will overwrite those defined at the provider-level.
*
*/
public Optional>> tags() {
return Optional.ofNullable(this.tags);
}
/**
* A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block.
*
* @deprecated
* Please use `tags` instead.
*
*/
@Deprecated /* Please use `tags` instead. */
@Import(name="tagsAll")
private @Nullable Output> tagsAll;
/**
* @return A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block.
*
* @deprecated
* Please use `tags` instead.
*
*/
@Deprecated /* Please use `tags` instead. */
public Optional>> tagsAll() {
return Optional.ofNullable(this.tagsAll);
}
/**
* Name for the version of the Document Classifier.
* Each version must have a unique name within the Document Classifier.
* If omitted, the provider will assign a random, unique version name.
* If explicitly set to `""`, no version name will be set.
* Has a maximum length of 63 characters.
* Can contain upper- and lower-case letters, numbers, and hypen (`-`).
* Conflicts with `version_name_prefix`.
*
*/
@Import(name="versionName")
private @Nullable Output versionName;
/**
* @return Name for the version of the Document Classifier.
* Each version must have a unique name within the Document Classifier.
* If omitted, the provider will assign a random, unique version name.
* If explicitly set to `""`, no version name will be set.
* Has a maximum length of 63 characters.
* Can contain upper- and lower-case letters, numbers, and hypen (`-`).
* Conflicts with `version_name_prefix`.
*
*/
public Optional> versionName() {
return Optional.ofNullable(this.versionName);
}
/**
* Creates a unique version name beginning with the specified prefix.
* Has a maximum length of 37 characters.
* Can contain upper- and lower-case letters, numbers, and hypen (`-`).
* Conflicts with `version_name`.
*
*/
@Import(name="versionNamePrefix")
private @Nullable Output versionNamePrefix;
/**
* @return Creates a unique version name beginning with the specified prefix.
* Has a maximum length of 37 characters.
* Can contain upper- and lower-case letters, numbers, and hypen (`-`).
* Conflicts with `version_name`.
*
*/
public Optional> versionNamePrefix() {
return Optional.ofNullable(this.versionNamePrefix);
}
/**
* KMS Key used to encrypt storage volumes during job processing.
* Can be a KMS Key ID or a KMS Key ARN.
*
*/
@Import(name="volumeKmsKeyId")
private @Nullable Output volumeKmsKeyId;
/**
* @return KMS Key used to encrypt storage volumes during job processing.
* Can be a KMS Key ID or a KMS Key ARN.
*
*/
public Optional> volumeKmsKeyId() {
return Optional.ofNullable(this.volumeKmsKeyId);
}
/**
* Configuration parameters for VPC to contain Document Classifier resources.
* See the `vpc_config` Configuration Block section below.
*
*/
@Import(name="vpcConfig")
private @Nullable Output vpcConfig;
/**
* @return Configuration parameters for VPC to contain Document Classifier resources.
* See the `vpc_config` Configuration Block section below.
*
*/
public Optional> vpcConfig() {
return Optional.ofNullable(this.vpcConfig);
}
private DocumentClassifierState() {}
private DocumentClassifierState(DocumentClassifierState $) {
this.arn = $.arn;
this.dataAccessRoleArn = $.dataAccessRoleArn;
this.inputDataConfig = $.inputDataConfig;
this.languageCode = $.languageCode;
this.mode = $.mode;
this.modelKmsKeyId = $.modelKmsKeyId;
this.name = $.name;
this.outputDataConfig = $.outputDataConfig;
this.tags = $.tags;
this.tagsAll = $.tagsAll;
this.versionName = $.versionName;
this.versionNamePrefix = $.versionNamePrefix;
this.volumeKmsKeyId = $.volumeKmsKeyId;
this.vpcConfig = $.vpcConfig;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(DocumentClassifierState defaults) {
return new Builder(defaults);
}
public static final class Builder {
private DocumentClassifierState $;
public Builder() {
$ = new DocumentClassifierState();
}
public Builder(DocumentClassifierState defaults) {
$ = new DocumentClassifierState(Objects.requireNonNull(defaults));
}
/**
* @param arn ARN of the Document Classifier version.
*
* @return builder
*
*/
public Builder arn(@Nullable Output arn) {
$.arn = arn;
return this;
}
/**
* @param arn ARN of the Document Classifier version.
*
* @return builder
*
*/
public Builder arn(String arn) {
return arn(Output.of(arn));
}
/**
* @param dataAccessRoleArn The ARN for an IAM Role which allows Comprehend to read the training and testing data.
*
* @return builder
*
*/
public Builder dataAccessRoleArn(@Nullable Output dataAccessRoleArn) {
$.dataAccessRoleArn = dataAccessRoleArn;
return this;
}
/**
* @param dataAccessRoleArn The ARN for an IAM Role which allows Comprehend to read the training and testing data.
*
* @return builder
*
*/
public Builder dataAccessRoleArn(String dataAccessRoleArn) {
return dataAccessRoleArn(Output.of(dataAccessRoleArn));
}
/**
* @param inputDataConfig Configuration for the training and testing data.
* See the `input_data_config` Configuration Block section below.
*
* @return builder
*
*/
public Builder inputDataConfig(@Nullable Output inputDataConfig) {
$.inputDataConfig = inputDataConfig;
return this;
}
/**
* @param inputDataConfig Configuration for the training and testing data.
* See the `input_data_config` Configuration Block section below.
*
* @return builder
*
*/
public Builder inputDataConfig(DocumentClassifierInputDataConfigArgs inputDataConfig) {
return inputDataConfig(Output.of(inputDataConfig));
}
/**
* @param languageCode Two-letter language code for the language.
* One of `en`, `es`, `fr`, `it`, `de`, or `pt`.
*
* @return builder
*
*/
public Builder languageCode(@Nullable Output languageCode) {
$.languageCode = languageCode;
return this;
}
/**
* @param languageCode Two-letter language code for the language.
* One of `en`, `es`, `fr`, `it`, `de`, or `pt`.
*
* @return builder
*
*/
public Builder languageCode(String languageCode) {
return languageCode(Output.of(languageCode));
}
/**
* @param mode The document classification mode.
* One of `MULTI_CLASS` or `MULTI_LABEL`.
* `MULTI_CLASS` is also known as "Single Label" in the AWS Console.
*
* @return builder
*
*/
public Builder mode(@Nullable Output mode) {
$.mode = mode;
return this;
}
/**
* @param mode The document classification mode.
* One of `MULTI_CLASS` or `MULTI_LABEL`.
* `MULTI_CLASS` is also known as "Single Label" in the AWS Console.
*
* @return builder
*
*/
public Builder mode(String mode) {
return mode(Output.of(mode));
}
/**
* @param modelKmsKeyId KMS Key used to encrypt trained Document Classifiers.
* Can be a KMS Key ID or a KMS Key ARN.
*
* @return builder
*
*/
public Builder modelKmsKeyId(@Nullable Output modelKmsKeyId) {
$.modelKmsKeyId = modelKmsKeyId;
return this;
}
/**
* @param modelKmsKeyId KMS Key used to encrypt trained Document Classifiers.
* Can be a KMS Key ID or a KMS Key ARN.
*
* @return builder
*
*/
public Builder modelKmsKeyId(String modelKmsKeyId) {
return modelKmsKeyId(Output.of(modelKmsKeyId));
}
/**
* @param name Name for the Document Classifier.
* Has a maximum length of 63 characters.
* Can contain upper- and lower-case letters, numbers, and hypen (`-`).
*
* The following arguments are optional:
*
* @return builder
*
*/
public Builder name(@Nullable Output name) {
$.name = name;
return this;
}
/**
* @param name Name for the Document Classifier.
* Has a maximum length of 63 characters.
* Can contain upper- and lower-case letters, numbers, and hypen (`-`).
*
* The following arguments are optional:
*
* @return builder
*
*/
public Builder name(String name) {
return name(Output.of(name));
}
/**
* @param outputDataConfig Configuration for the output results of training.
* See the `output_data_config` Configuration Block section below.
*
* @return builder
*
*/
public Builder outputDataConfig(@Nullable Output outputDataConfig) {
$.outputDataConfig = outputDataConfig;
return this;
}
/**
* @param outputDataConfig Configuration for the output results of training.
* See the `output_data_config` Configuration Block section below.
*
* @return builder
*
*/
public Builder outputDataConfig(DocumentClassifierOutputDataConfigArgs outputDataConfig) {
return outputDataConfig(Output.of(outputDataConfig));
}
/**
* @param tags A map of tags to assign to the resource. If configured with a provider `default_tags` Configuration Block present, tags with matching keys will overwrite those defined at the provider-level.
*
* @return builder
*
*/
public Builder tags(@Nullable Output> tags) {
$.tags = tags;
return this;
}
/**
* @param tags A map of tags to assign to the resource. If configured with a provider `default_tags` Configuration Block present, tags with matching keys will overwrite those defined at the provider-level.
*
* @return builder
*
*/
public Builder tags(Map tags) {
return tags(Output.of(tags));
}
/**
* @param tagsAll A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block.
*
* @return builder
*
* @deprecated
* Please use `tags` instead.
*
*/
@Deprecated /* Please use `tags` instead. */
public Builder tagsAll(@Nullable Output> tagsAll) {
$.tagsAll = tagsAll;
return this;
}
/**
* @param tagsAll A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block.
*
* @return builder
*
* @deprecated
* Please use `tags` instead.
*
*/
@Deprecated /* Please use `tags` instead. */
public Builder tagsAll(Map tagsAll) {
return tagsAll(Output.of(tagsAll));
}
/**
* @param versionName Name for the version of the Document Classifier.
* Each version must have a unique name within the Document Classifier.
* If omitted, the provider will assign a random, unique version name.
* If explicitly set to `""`, no version name will be set.
* Has a maximum length of 63 characters.
* Can contain upper- and lower-case letters, numbers, and hypen (`-`).
* Conflicts with `version_name_prefix`.
*
* @return builder
*
*/
public Builder versionName(@Nullable Output versionName) {
$.versionName = versionName;
return this;
}
/**
* @param versionName Name for the version of the Document Classifier.
* Each version must have a unique name within the Document Classifier.
* If omitted, the provider will assign a random, unique version name.
* If explicitly set to `""`, no version name will be set.
* Has a maximum length of 63 characters.
* Can contain upper- and lower-case letters, numbers, and hypen (`-`).
* Conflicts with `version_name_prefix`.
*
* @return builder
*
*/
public Builder versionName(String versionName) {
return versionName(Output.of(versionName));
}
/**
* @param versionNamePrefix Creates a unique version name beginning with the specified prefix.
* Has a maximum length of 37 characters.
* Can contain upper- and lower-case letters, numbers, and hypen (`-`).
* Conflicts with `version_name`.
*
* @return builder
*
*/
public Builder versionNamePrefix(@Nullable Output versionNamePrefix) {
$.versionNamePrefix = versionNamePrefix;
return this;
}
/**
* @param versionNamePrefix Creates a unique version name beginning with the specified prefix.
* Has a maximum length of 37 characters.
* Can contain upper- and lower-case letters, numbers, and hypen (`-`).
* Conflicts with `version_name`.
*
* @return builder
*
*/
public Builder versionNamePrefix(String versionNamePrefix) {
return versionNamePrefix(Output.of(versionNamePrefix));
}
/**
* @param volumeKmsKeyId KMS Key used to encrypt storage volumes during job processing.
* Can be a KMS Key ID or a KMS Key ARN.
*
* @return builder
*
*/
public Builder volumeKmsKeyId(@Nullable Output volumeKmsKeyId) {
$.volumeKmsKeyId = volumeKmsKeyId;
return this;
}
/**
* @param volumeKmsKeyId KMS Key used to encrypt storage volumes during job processing.
* Can be a KMS Key ID or a KMS Key ARN.
*
* @return builder
*
*/
public Builder volumeKmsKeyId(String volumeKmsKeyId) {
return volumeKmsKeyId(Output.of(volumeKmsKeyId));
}
/**
* @param vpcConfig Configuration parameters for VPC to contain Document Classifier resources.
* See the `vpc_config` Configuration Block section below.
*
* @return builder
*
*/
public Builder vpcConfig(@Nullable Output vpcConfig) {
$.vpcConfig = vpcConfig;
return this;
}
/**
* @param vpcConfig Configuration parameters for VPC to contain Document Classifier resources.
* See the `vpc_config` Configuration Block section below.
*
* @return builder
*
*/
public Builder vpcConfig(DocumentClassifierVpcConfigArgs vpcConfig) {
return vpcConfig(Output.of(vpcConfig));
}
public DocumentClassifierState build() {
return $;
}
}
}