![JAR search and dependency download from the Maven repository](/logo.png)
io.github.cdklabs.cdkawssagemakerrolemanager.Persona Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cdk-aws-sagemaker-role-manager Show documentation
Show all versions of cdk-aws-sagemaker-role-manager Show documentation
Create roles and policies for ML Activities and ML Personas
package io.github.cdklabs.cdkawssagemakerrolemanager;
/**
*/
@javax.annotation.Generated(value = "jsii-pacmak/1.84.0 (build 5404dcf)", date = "2023-06-20T00:20:25.954Z")
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@software.amazon.jsii.Jsii(module = io.github.cdklabs.cdkawssagemakerrolemanager.$Module.class, fqn = "@cdklabs/cdk-aws-sagemaker-role-manager.Persona")
public class Persona extends software.constructs.Construct {
protected Persona(final software.amazon.jsii.JsiiObjectRef objRef) {
super(objRef);
}
protected Persona(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) {
super(initializationMode);
}
/**
* @param scope This parameter is required.
* @param id This parameter is required.
* @param props This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Persona(final @org.jetbrains.annotations.NotNull software.constructs.Construct scope, final @org.jetbrains.annotations.NotNull java.lang.String id, final @org.jetbrains.annotations.NotNull io.github.cdklabs.cdkawssagemakerrolemanager.PersonaProps 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(id, "id is required"), java.util.Objects.requireNonNull(props, "props is required") });
}
/**
* (experimental) Creates role with permissions of persona.
*
* @return
* - The role that is created with the permissions of the persona
*
* @param scope the Construct scope. This parameter is required.
* @param id the resource id. This parameter is required.
* @param roleNameSuffix the name suffix of the role that will be created, if empty the role will have the name of the activity. This parameter is required.
* @param roleDescription the description of the role that will be created.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.iam.IRole createRole(final @org.jetbrains.annotations.NotNull software.constructs.Construct scope, final @org.jetbrains.annotations.NotNull java.lang.String id, final @org.jetbrains.annotations.NotNull java.lang.String roleNameSuffix, final @org.jetbrains.annotations.Nullable java.lang.String roleDescription) {
return software.amazon.jsii.Kernel.call(this, "createRole", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.iam.IRole.class), new Object[] { java.util.Objects.requireNonNull(scope, "scope is required"), java.util.Objects.requireNonNull(id, "id is required"), java.util.Objects.requireNonNull(roleNameSuffix, "roleNameSuffix is required"), roleDescription });
}
/**
* (experimental) Creates role with permissions of persona.
*
* @return
* - The role that is created with the permissions of the persona
*
* @param scope the Construct scope. This parameter is required.
* @param id the resource id. This parameter is required.
* @param roleNameSuffix the name suffix of the role that will be created, if empty the role will have the name of the activity. This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.iam.IRole createRole(final @org.jetbrains.annotations.NotNull software.constructs.Construct scope, final @org.jetbrains.annotations.NotNull java.lang.String id, final @org.jetbrains.annotations.NotNull java.lang.String roleNameSuffix) {
return software.amazon.jsii.Kernel.call(this, "createRole", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.iam.IRole.class), new Object[] { java.util.Objects.requireNonNull(scope, "scope is required"), java.util.Objects.requireNonNull(id, "id is required"), java.util.Objects.requireNonNull(roleNameSuffix, "roleNameSuffix is required") });
}
/**
* @param dataKeys
* @param volumeKeys
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public void customizeKMS(final @org.jetbrains.annotations.Nullable java.util.List dataKeys, final @org.jetbrains.annotations.Nullable java.util.List volumeKeys) {
software.amazon.jsii.Kernel.call(this, "customizeKMS", software.amazon.jsii.NativeType.VOID, new Object[] { dataKeys, volumeKeys });
}
/**
* @param dataKeys
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public void customizeKMS(final @org.jetbrains.annotations.Nullable java.util.List dataKeys) {
software.amazon.jsii.Kernel.call(this, "customizeKMS", software.amazon.jsii.NativeType.VOID, new Object[] { dataKeys });
}
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public void customizeKMS() {
software.amazon.jsii.Kernel.call(this, "customizeKMS", software.amazon.jsii.NativeType.VOID);
}
/**
* @param subnets
* @param securityGroups
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public void customizeVPC(final @org.jetbrains.annotations.Nullable java.util.List subnets, final @org.jetbrains.annotations.Nullable java.util.List securityGroups) {
software.amazon.jsii.Kernel.call(this, "customizeVPC", software.amazon.jsii.NativeType.VOID, new Object[] { subnets, securityGroups });
}
/**
* @param subnets
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public void customizeVPC(final @org.jetbrains.annotations.Nullable java.util.List subnets) {
software.amazon.jsii.Kernel.call(this, "customizeVPC", software.amazon.jsii.NativeType.VOID, new Object[] { subnets });
}
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public void customizeVPC() {
software.amazon.jsii.Kernel.call(this, "customizeVPC", software.amazon.jsii.NativeType.VOID);
}
/**
* (experimental) Grant permissions of activity to identity.
*
* @return
* - The grant with the permissions granted to the identity
*
* @param identity identity to be granted permissions. This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.iam.Grant grantPermissionsTo(final @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.iam.IGrantable identity) {
return software.amazon.jsii.Kernel.call(this, "grantPermissionsTo", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.iam.Grant.class), new Object[] { java.util.Objects.requireNonNull(identity, "identity is required") });
}
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public @org.jetbrains.annotations.NotNull java.util.List getActivities() {
return java.util.Collections.unmodifiableList(software.amazon.jsii.Kernel.get(this, "activities", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(io.github.cdklabs.cdkawssagemakerrolemanager.Activity.class))));
}
/**
* (experimental) A fluent builder for {@link io.github.cdklabs.cdkawssagemakerrolemanager.Persona}.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public static final class Builder implements software.amazon.jsii.Builder {
/**
* @return a new instance of {@link Builder}.
* @param scope This parameter is required.
* @param id This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public static Builder create(final software.constructs.Construct scope, final java.lang.String id) {
return new Builder(scope, id);
}
private final software.constructs.Construct scope;
private final java.lang.String id;
private final io.github.cdklabs.cdkawssagemakerrolemanager.PersonaProps.Builder props;
private Builder(final software.constructs.Construct scope, final java.lang.String id) {
this.scope = scope;
this.id = id;
this.props = new io.github.cdklabs.cdkawssagemakerrolemanager.PersonaProps.Builder();
}
/**
* @return {@code this}
* @param securityGroups This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder securityGroups(final java.util.List extends software.amazon.awscdk.services.ec2.ISecurityGroup> securityGroups) {
this.props.securityGroups(securityGroups);
return this;
}
/**
* @return {@code this}
* @param subnets This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder subnets(final java.util.List extends software.amazon.awscdk.services.ec2.ISubnet> subnets) {
this.props.subnets(subnets);
return this;
}
/**
* @return {@code this}
* @param dataKeys This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder dataKeys(final java.util.List extends software.amazon.awscdk.services.kms.IKey> dataKeys) {
this.props.dataKeys(dataKeys);
return this;
}
/**
* @return {@code this}
* @param volumeKeys This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder volumeKeys(final java.util.List extends software.amazon.awscdk.services.kms.IKey> volumeKeys) {
this.props.volumeKeys(volumeKeys);
return this;
}
/**
* @return {@code this}
* @param activities This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder activities(final java.util.List extends io.github.cdklabs.cdkawssagemakerrolemanager.Activity> activities) {
this.props.activities(activities);
return this;
}
/**
* @return a newly built instance of {@link io.github.cdklabs.cdkawssagemakerrolemanager.Persona}.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@Override
public io.github.cdklabs.cdkawssagemakerrolemanager.Persona build() {
return new io.github.cdklabs.cdkawssagemakerrolemanager.Persona(
this.scope,
this.id,
this.props.build()
);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy