io.burkard.cdk.services.secretsmanager.SecretRotation.scala Maven / Gradle / Ivy
The newest version!
package io.burkard.cdk.services.secretsmanager
@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object SecretRotation {
def apply(
internalResourceId: String,
application: software.amazon.awscdk.services.secretsmanager.SecretRotationApplication,
secret: software.amazon.awscdk.services.secretsmanager.ISecret,
target: software.amazon.awscdk.services.ec2.IConnectable,
vpc: software.amazon.awscdk.services.ec2.IVpc,
masterSecret: Option[software.amazon.awscdk.services.secretsmanager.ISecret] = None,
excludeCharacters: Option[String] = None,
automaticallyAfter: Option[software.amazon.awscdk.Duration] = None,
vpcSubnets: Option[software.amazon.awscdk.services.ec2.SubnetSelection] = None,
endpoint: Option[software.amazon.awscdk.services.ec2.IInterfaceVpcEndpoint] = None,
securityGroup: Option[software.amazon.awscdk.services.ec2.ISecurityGroup] = None
)(implicit stackCtx: software.amazon.awscdk.Stack): software.amazon.awscdk.services.secretsmanager.SecretRotation =
software.amazon.awscdk.services.secretsmanager.SecretRotation.Builder
.create(stackCtx, internalResourceId)
.application(application)
.secret(secret)
.target(target)
.vpc(vpc)
.masterSecret(masterSecret.orNull)
.excludeCharacters(excludeCharacters.orNull)
.automaticallyAfter(automaticallyAfter.orNull)
.vpcSubnets(vpcSubnets.orNull)
.endpoint(endpoint.orNull)
.securityGroup(securityGroup.orNull)
.build()
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy