Class SecurityConfiguration
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.Resource
software.amazon.awscdk.services.glue.alpha.SecurityConfiguration
- All Implemented Interfaces:
IResource,ISecurityConfiguration,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-24T13:34:50.147Z")
@Stability(Experimental)
public class SecurityConfiguration
extends Resource
implements ISecurityConfiguration
(experimental) A security configuration is a set of security properties that can be used by AWS Glue to encrypt data at rest.
The following scenarios show some of the ways that you can use a security configuration.
- Attach a security configuration to an AWS Glue crawler to write encrypted Amazon CloudWatch Logs.
- Attach a security configuration to an extract, transform, and load (ETL) job to write encrypted Amazon Simple Storage Service (Amazon S3) targets and encrypted CloudWatch Logs.
- Attach a security configuration to an ETL job to write its jobs bookmarks as encrypted Amazon S3 data.
- Attach a security configuration to a development endpoint to write encrypted Amazon S3 targets.
Example:
import software.amazon.awscdk.*;
import software.amazon.awscdk.services.iam.*;
Stack stack;
IRole role;
Code script;
RayJob.Builder.create(stack, "ImportedJob")
.role(role)
.script(script)
.jobName("RayCustomJobName")
.description("This is a description")
.workerType(WorkerType.Z_2X)
.numberOfWorkers(5)
.runtime(Runtime.RAY_TWO_FOUR)
.maxRetries(3)
.maxConcurrentRuns(100)
.timeout(Duration.hours(2))
.connections(List.of(Connection.fromConnectionName(stack, "Connection", "connectionName")))
.securityConfiguration(SecurityConfiguration.fromSecurityConfigurationName(stack, "SecurityConfig", "securityConfigName"))
.tags(Map.of(
"FirstTagName", "FirstTagValue",
"SecondTagName", "SecondTagValue",
"XTagName", "XTagValue"))
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class(experimental) A fluent builder forSecurityConfiguration.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.services.glue.alpha.ISecurityConfiguration
ISecurityConfiguration.Jsii$Default, ISecurityConfiguration.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String(experimental) Uniquely identifies this class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedSecurityConfiguration(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedSecurityConfiguration(software.amazon.jsii.JsiiObjectRef objRef) SecurityConfiguration(software.constructs.Construct scope, String id) SecurityConfiguration(software.constructs.Construct scope, String id, SecurityConfigurationProps props) -
Method Summary
Modifier and TypeMethodDescriptionstatic ISecurityConfigurationfromSecurityConfigurationName(software.constructs.Construct scope, String id, String securityConfigurationName) (experimental) Creates a Connection construct that represents an external security configuration.(experimental) The KMS key used in CloudWatch encryption if it requires a kms key.(experimental) The KMS key used in job bookmarks encryption if it requires a kms key.(experimental) The KMS key used in S3 encryption if it requires a kms key.(experimental) The name of the security configuration.Methods inherited from class software.amazon.awscdk.Resource
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResourceMethods inherited from class software.constructs.Construct
getNode, isConstruct, toStringMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.IResource
applyRemovalPolicy, getEnv, getStackMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
PROPERTY_INJECTION_ID
(experimental) Uniquely identifies this class.
-
-
Constructor Details
-
SecurityConfiguration
protected SecurityConfiguration(software.amazon.jsii.JsiiObjectRef objRef) -
SecurityConfiguration
protected SecurityConfiguration(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
SecurityConfiguration
@Stability(Experimental) public SecurityConfiguration(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable SecurityConfigurationProps props) - Parameters:
scope- This parameter is required.id- This parameter is required.props-
-
SecurityConfiguration
@Stability(Experimental) public SecurityConfiguration(@NotNull software.constructs.Construct scope, @NotNull String id) - Parameters:
scope- This parameter is required.id- This parameter is required.
-
-
Method Details
-
fromSecurityConfigurationName
@Stability(Experimental) @NotNull public static ISecurityConfiguration fromSecurityConfigurationName(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String securityConfigurationName) (experimental) Creates a Connection construct that represents an external security configuration.- Parameters:
scope- The scope creating construct (usuallythis). This parameter is required.id- The construct's id. This parameter is required.securityConfigurationName- name of external security configuration. This parameter is required.
-
getSecurityConfigurationName
(experimental) The name of the security configuration.- Specified by:
getSecurityConfigurationNamein interfaceISecurityConfiguration
-
getCloudWatchEncryptionKey
(experimental) The KMS key used in CloudWatch encryption if it requires a kms key. -
getJobBookmarksEncryptionKey
(experimental) The KMS key used in job bookmarks encryption if it requires a kms key. -
getS3EncryptionKey
(experimental) The KMS key used in S3 encryption if it requires a kms key.
-