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

com.pulumi.awsnative.neptune.kotlin.outputs.GetDbClusterResult.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.neptune.kotlin.outputs

import com.pulumi.awsnative.kotlin.outputs.Tag
import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 *
 * @property associatedRoles Provides a list of the AWS Identity and Access Management (IAM) roles that are associated with the DB cluster. IAM roles that are associated with a DB cluster grant permission for the DB cluster to access other AWS services on your behalf.
 * @property backupRetentionPeriod Specifies the number of days for which automatic DB snapshots are retained.
 * @property clusterResourceId The resource id for the DB cluster. For example: `cluster-ABCD1234EFGH5678IJKL90MNOP`. The cluster ID uniquely identifies the cluster and is used in things like IAM authentication policies.
 * @property copyTagsToSnapshot A value that indicates whether to copy all tags from the DB cluster to snapshots of the DB cluster. The default behaviour is not to copy them.
 * @property dbClusterParameterGroupName Provides the name of the DB cluster parameter group.
 * @property dbPort The port number on which the DB instances in the DB cluster accept connections.
 * If not specified, the default port used is `8182`.
 * Note: `Port` property will soon be deprecated from this resource. Please update existing templates to rename it with new property `DBPort` having same functionalities.
 * @property deletionProtection Indicates whether or not the DB cluster has deletion protection enabled. The database can't be deleted when deletion protection is enabled.
 * @property enableCloudwatchLogsExports Specifies a list of log types that are enabled for export to CloudWatch Logs.
 * @property endpoint The connection endpoint for the DB cluster. For example: `mystack-mydbcluster-1apw1j4phylrk.cg034hpkmmjt.us-east-2.rds.amazonaws.com`
 * @property engineVersion Indicates the database engine version.
 * @property iamAuthEnabled True if mapping of Amazon Identity and Access Management (IAM) accounts to database accounts is enabled, and otherwise false.
 * @property port The port number on which the DB cluster accepts connections. For example: `8182`.
 * @property preferredBackupWindow Specifies the daily time range during which automated backups are created if automated backups are enabled, as determined by the BackupRetentionPeriod.
 * @property preferredMaintenanceWindow Specifies the weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).
 * @property readEndpoint The reader endpoint for the DB cluster. For example: `mystack-mydbcluster-ro-1apw1j4phylrk.cg034hpkmmjt.us-east-2.rds.amazonaws.com`
 * @property serverlessScalingConfiguration Contains the scaling configuration used by the Neptune Serverless Instances within this DB cluster.
 * @property tags The tags assigned to this cluster.
 * @property vpcSecurityGroupIds Provides a list of VPC security groups that the DB cluster belongs to.
 */
public data class GetDbClusterResult(
    public val associatedRoles: List? = null,
    public val backupRetentionPeriod: Int? = null,
    public val clusterResourceId: String? = null,
    public val copyTagsToSnapshot: Boolean? = null,
    public val dbClusterParameterGroupName: String? = null,
    public val dbPort: Int? = null,
    public val deletionProtection: Boolean? = null,
    public val enableCloudwatchLogsExports: List? = null,
    public val endpoint: String? = null,
    public val engineVersion: String? = null,
    public val iamAuthEnabled: Boolean? = null,
    public val port: String? = null,
    public val preferredBackupWindow: String? = null,
    public val preferredMaintenanceWindow: String? = null,
    public val readEndpoint: String? = null,
    public val serverlessScalingConfiguration: DbClusterServerlessScalingConfiguration? = null,
    public val tags: List? = null,
    public val vpcSecurityGroupIds: List? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.neptune.outputs.GetDbClusterResult): GetDbClusterResult = GetDbClusterResult(
            associatedRoles = javaType.associatedRoles().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.neptune.kotlin.outputs.DbClusterDbClusterRole.Companion.toKotlin(args0)
                })
            }),
            backupRetentionPeriod = javaType.backupRetentionPeriod().map({ args0 -> args0 }).orElse(null),
            clusterResourceId = javaType.clusterResourceId().map({ args0 -> args0 }).orElse(null),
            copyTagsToSnapshot = javaType.copyTagsToSnapshot().map({ args0 -> args0 }).orElse(null),
            dbClusterParameterGroupName = javaType.dbClusterParameterGroupName().map({ args0 ->
                args0
            }).orElse(null),
            dbPort = javaType.dbPort().map({ args0 -> args0 }).orElse(null),
            deletionProtection = javaType.deletionProtection().map({ args0 -> args0 }).orElse(null),
            enableCloudwatchLogsExports = javaType.enableCloudwatchLogsExports().map({ args0 -> args0 }),
            endpoint = javaType.endpoint().map({ args0 -> args0 }).orElse(null),
            engineVersion = javaType.engineVersion().map({ args0 -> args0 }).orElse(null),
            iamAuthEnabled = javaType.iamAuthEnabled().map({ args0 -> args0 }).orElse(null),
            port = javaType.port().map({ args0 -> args0 }).orElse(null),
            preferredBackupWindow = javaType.preferredBackupWindow().map({ args0 -> args0 }).orElse(null),
            preferredMaintenanceWindow = javaType.preferredMaintenanceWindow().map({ args0 ->
                args0
            }).orElse(null),
            readEndpoint = javaType.readEndpoint().map({ args0 -> args0 }).orElse(null),
            serverlessScalingConfiguration = javaType.serverlessScalingConfiguration().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.neptune.kotlin.outputs.DbClusterServerlessScalingConfiguration.Companion.toKotlin(args0)
                })
            }).orElse(null),
            tags = javaType.tags().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.kotlin.outputs.Tag.Companion.toKotlin(args0)
                })
            }),
            vpcSecurityGroupIds = javaType.vpcSecurityGroupIds().map({ args0 -> args0 }),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy