io.github.hsiehshujeng.cdk.emrserverless.quickdemo.EmrStudioDeveloperStack Maven / Gradle / Ivy
Show all versions of cdk-emrserverless-quickdemo-with-delta-lake Show documentation
package io.github.hsiehshujeng.cdk.emrserverless.quickdemo;
/**
* Creates a Service Catalog for EMR cluster templates.
*
* For detail, please refer to Create AWS CloudFormation templates for Amazon EMR Studio.
*
*
* const emrClusterTemplatePortfolio = new EmrStudioDeveloperStack(this, 'ClusterTempalte');
*
*/
@javax.annotation.Generated(value = "jsii-pacmak/1.105.0 (build 0a2adcb)", date = "2024-12-02T01:11:38.401Z")
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@software.amazon.jsii.Jsii(module = io.github.hsiehshujeng.cdk.emrserverless.quickdemo.$Module.class, fqn = "cdk-emrserverless-with-delta-lake.EmrStudioDeveloperStack")
public class EmrStudioDeveloperStack extends software.constructs.Construct {
protected EmrStudioDeveloperStack(final software.amazon.jsii.JsiiObjectRef objRef) {
super(objRef);
}
protected EmrStudioDeveloperStack(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) {
super(initializationMode);
}
/**
* @param scope This parameter is required.
* @param name This parameter is required.
* @param props
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public EmrStudioDeveloperStack(final @org.jetbrains.annotations.NotNull software.constructs.Construct scope, final @org.jetbrains.annotations.NotNull java.lang.String name, final @org.jetbrains.annotations.Nullable io.github.hsiehshujeng.cdk.emrserverless.quickdemo.EmrStudioDeveloperStackProps props) {
super(software.amazon.jsii.JsiiObject.InitializationMode.JSII);
software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(scope, "scope is required"), java.util.Objects.requireNonNull(name, "name is required"), props });
}
/**
* @param scope This parameter is required.
* @param name This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public EmrStudioDeveloperStack(final @org.jetbrains.annotations.NotNull software.constructs.Construct scope, final @org.jetbrains.annotations.NotNull java.lang.String name) {
super(software.amazon.jsii.JsiiObject.InitializationMode.JSII);
software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(scope, "scope is required"), java.util.Objects.requireNonNull(name, "name is required") });
}
/**
* The representative of the service catalog for EMR cluster tempaltes.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.servicecatalog.Portfolio getPortfolio() {
return software.amazon.jsii.Kernel.get(this, "portfolio", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.servicecatalog.Portfolio.class));
}
/**
* The representative of the product for demo purpose.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.servicecatalog.Product getProduct() {
return software.amazon.jsii.Kernel.get(this, "product", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.servicecatalog.Product.class));
}
/**
* A fluent builder for {@link io.github.hsiehshujeng.cdk.emrserverless.quickdemo.EmrStudioDeveloperStack}.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public static final class Builder implements software.amazon.jsii.Builder {
/**
* @return a new instance of {@link Builder}.
* @param scope This parameter is required.
* @param name This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public static Builder create(final software.constructs.Construct scope, final java.lang.String name) {
return new Builder(scope, name);
}
private final software.constructs.Construct scope;
private final java.lang.String name;
private io.github.hsiehshujeng.cdk.emrserverless.quickdemo.EmrStudioDeveloperStackProps.Builder props;
private Builder(final software.constructs.Construct scope, final java.lang.String name) {
this.scope = scope;
this.name = name;
}
/**
* an IAM group you wish to associate with the Portfolio for EMR cluster template.
*
* @return {@code this}
* @param group an IAM group you wish to associate with the Portfolio for EMR cluster template. This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder group(final software.amazon.awscdk.services.iam.IGroup group) {
this.props().group(group);
return this;
}
/**
* The provider name in a Service Catalog for EMR cluster templates.
*
* Default: - 'scott.hsieh'
*
* @return {@code this}
* @param providerName The provider name in a Service Catalog for EMR cluster templates. This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder providerName(final java.lang.String providerName) {
this.props().providerName(providerName);
return this;
}
/**
* an IAM role you wish to associate with the Portfolio for EMR cluster template.
*
* @return {@code this}
* @param role an IAM role you wish to associate with the Portfolio for EMR cluster template. This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder role(final software.amazon.awscdk.services.iam.IRole role) {
this.props().role(role);
return this;
}
/**
* an IAM user you wish to associate with the Portfolio for EMR cluster template.
*
* @return {@code this}
* @param user an IAM user you wish to associate with the Portfolio for EMR cluster template. This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder user(final software.amazon.awscdk.services.iam.IUser user) {
this.props().user(user);
return this;
}
/**
* @return a newly built instance of {@link io.github.hsiehshujeng.cdk.emrserverless.quickdemo.EmrStudioDeveloperStack}.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@Override
public io.github.hsiehshujeng.cdk.emrserverless.quickdemo.EmrStudioDeveloperStack build() {
return new io.github.hsiehshujeng.cdk.emrserverless.quickdemo.EmrStudioDeveloperStack(
this.scope,
this.name,
this.props != null ? this.props.build() : null
);
}
private io.github.hsiehshujeng.cdk.emrserverless.quickdemo.EmrStudioDeveloperStackProps.Builder props() {
if (this.props == null) {
this.props = new io.github.hsiehshujeng.cdk.emrserverless.quickdemo.EmrStudioDeveloperStackProps.Builder();
}
return this.props;
}
}
}