All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.hsiehshujeng.cdk.emrserverless.quickdemo.EmrStudioWorkspaceSecurityGroup Maven / Gradle / Ivy

There is a newer version: 2.0.614
Show newest version
package io.github.hsiehshujeng.cdk.emrserverless.quickdemo;

/**
 * Created a workspace security group for EMR Studio.
 * 

* For detail, plrease refer to Workspace security group. *

*

 * const workSpaceSecurityGroup = new EmrStudioWorkspaceSecurityGroup(this, 'Workspace', { vpc: baseVpc });
 * const engineSecurityGroup = new EmrStudioEngineSecurityGroup(this, 'Engine', { vpc: baseVpc });
 * workSpaceSecurityGroup.entity.connections.allowTo(engineSecurityGroup.entity, ec2.Port.tcp(18888), 'Allow traffic to any resources in the Engine security group for EMR Studio.');
 * workSpaceSecurityGroup.entity.addEgressRule(ec2.Peer.anyIpv4(), ec2.Port.tcp(443), 'Allow traffic to the internet to link publicly hosted Git repositories to Workspaces.');
 * 
*/ @javax.annotation.Generated(value = "jsii-pacmak/1.105.0 (build 0a2adcb)", date = "2024-12-02T01:11:38.407Z") @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.EmrStudioWorkspaceSecurityGroup") public class EmrStudioWorkspaceSecurityGroup extends software.constructs.Construct { protected EmrStudioWorkspaceSecurityGroup(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); } protected EmrStudioWorkspaceSecurityGroup(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { super(initializationMode); } /** * @param scope This parameter is required. * @param name This parameter is required. * @param props This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public EmrStudioWorkspaceSecurityGroup(final @org.jetbrains.annotations.NotNull software.constructs.Construct scope, final @org.jetbrains.annotations.NotNull java.lang.String name, final @org.jetbrains.annotations.NotNull io.github.hsiehshujeng.cdk.emrserverless.quickdemo.EmrStudioWorkspaceSecurityGroupProps 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"), java.util.Objects.requireNonNull(props, "props is required") }); } /** * The representative of the security group as the EMR Studio workspace security group. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.ec2.SecurityGroup getEntity() { return software.amazon.jsii.Kernel.get(this, "entity", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.ec2.SecurityGroup.class)); } /** * A fluent builder for {@link io.github.hsiehshujeng.cdk.emrserverless.quickdemo.EmrStudioWorkspaceSecurityGroup}. */ @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 final io.github.hsiehshujeng.cdk.emrserverless.quickdemo.EmrStudioWorkspaceSecurityGroupProps.Builder props; private Builder(final software.constructs.Construct scope, final java.lang.String name) { this.scope = scope; this.name = name; this.props = new io.github.hsiehshujeng.cdk.emrserverless.quickdemo.EmrStudioWorkspaceSecurityGroupProps.Builder(); } /** * The VPC in which to create workspace security group for EMR Studio. *

* Default: - default VPC in an AWS account. *

* @return {@code this} * @param vpc The VPC in which to create workspace security group for EMR Studio. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder vpc(final software.amazon.awscdk.services.ec2.IVpc vpc) { this.props.vpc(vpc); return this; } /** * @return a newly built instance of {@link io.github.hsiehshujeng.cdk.emrserverless.quickdemo.EmrStudioWorkspaceSecurityGroup}. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @Override public io.github.hsiehshujeng.cdk.emrserverless.quickdemo.EmrStudioWorkspaceSecurityGroup build() { return new io.github.hsiehshujeng.cdk.emrserverless.quickdemo.EmrStudioWorkspaceSecurityGroup( this.scope, this.name, this.props.build() ); } } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy