![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.awsnative.datasync.kotlin.LocationAzureBlob.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.datasync.kotlin
import com.pulumi.awsnative.datasync.kotlin.enums.LocationAzureBlobAzureAccessTier
import com.pulumi.awsnative.datasync.kotlin.enums.LocationAzureBlobAzureBlobAuthenticationType
import com.pulumi.awsnative.datasync.kotlin.enums.LocationAzureBlobAzureBlobType
import com.pulumi.awsnative.datasync.kotlin.outputs.LocationAzureBlobAzureBlobSasConfiguration
import com.pulumi.awsnative.kotlin.outputs.Tag
import com.pulumi.core.Output
import com.pulumi.kotlin.KotlinCustomResource
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.ResourceMapper
import com.pulumi.kotlin.options.CustomResourceOptions
import com.pulumi.kotlin.options.CustomResourceOptionsBuilder
import com.pulumi.resources.Resource
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import com.pulumi.awsnative.datasync.kotlin.enums.LocationAzureBlobAzureAccessTier.Companion.toKotlin as locationAzureBlobAzureAccessTierToKotlin
import com.pulumi.awsnative.datasync.kotlin.enums.LocationAzureBlobAzureBlobAuthenticationType.Companion.toKotlin as locationAzureBlobAzureBlobAuthenticationTypeToKotlin
import com.pulumi.awsnative.datasync.kotlin.enums.LocationAzureBlobAzureBlobType.Companion.toKotlin as locationAzureBlobAzureBlobTypeToKotlin
import com.pulumi.awsnative.datasync.kotlin.outputs.LocationAzureBlobAzureBlobSasConfiguration.Companion.toKotlin as locationAzureBlobAzureBlobSasConfigurationToKotlin
import com.pulumi.awsnative.kotlin.outputs.Tag.Companion.toKotlin as tagToKotlin
/**
* Builder for [LocationAzureBlob].
*/
@PulumiTagMarker
public class LocationAzureBlobResourceBuilder internal constructor() {
public var name: String? = null
public var args: LocationAzureBlobArgs = LocationAzureBlobArgs()
public var opts: CustomResourceOptions = CustomResourceOptions()
/**
* @param name The _unique_ name of the resulting resource.
*/
public fun name(`value`: String) {
this.name = value
}
/**
* @param block The arguments to use to populate this resource's properties.
*/
public suspend fun args(block: suspend LocationAzureBlobArgsBuilder.() -> Unit) {
val builder = LocationAzureBlobArgsBuilder()
block(builder)
this.args = builder.build()
}
/**
* @param block A bag of options that control this resource's behavior.
*/
public suspend fun opts(block: suspend CustomResourceOptionsBuilder.() -> Unit) {
this.opts = com.pulumi.kotlin.options.CustomResourceOptions.opts(block)
}
internal fun build(): LocationAzureBlob {
val builtJavaResource = com.pulumi.awsnative.datasync.LocationAzureBlob(
this.name,
this.args.toJava(),
this.opts.toJava(),
)
return LocationAzureBlob(builtJavaResource)
}
}
/**
* Resource schema for AWS::DataSync::LocationAzureBlob.
*/
public class LocationAzureBlob internal constructor(
override val javaResource: com.pulumi.awsnative.datasync.LocationAzureBlob,
) : KotlinCustomResource(javaResource, LocationAzureBlobMapper) {
/**
* The Amazon Resource Names (ARNs) of agents to use for an Azure Blob Location.
*/
public val agentArns: Output>
get() = javaResource.agentArns().applyValue({ args0 -> args0.map({ args0 -> args0 }) })
/**
* Specifies an access tier for the objects you're transferring into your Azure Blob Storage container.
*/
public val azureAccessTier: Output?
get() = javaResource.azureAccessTier().applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> locationAzureBlobAzureAccessTierToKotlin(args0) })
}).orElse(null)
})
/**
* The specific authentication type that you want DataSync to use to access your Azure Blob Container.
*/
public val azureBlobAuthenticationType: Output
get() = javaResource.azureBlobAuthenticationType().applyValue({ args0 ->
args0.let({ args0 ->
locationAzureBlobAzureBlobAuthenticationTypeToKotlin(args0)
})
})
/**
* The URL of the Azure Blob container that was described.
*/
public val azureBlobContainerUrl: Output?
get() = javaResource.azureBlobContainerUrl().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* Specifies the SAS configuration that allows DataSync to access your Azure Blob Storage.
*/
public val azureBlobSasConfiguration: Output?
get() = javaResource.azureBlobSasConfiguration().applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
locationAzureBlobAzureBlobSasConfigurationToKotlin(args0)
})
}).orElse(null)
})
/**
* Specifies a blob type for the objects you're transferring into your Azure Blob Storage container.
*/
public val azureBlobType: Output?
get() = javaResource.azureBlobType().applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> locationAzureBlobAzureBlobTypeToKotlin(args0) })
}).orElse(null)
})
/**
* The Amazon Resource Name (ARN) of the Azure Blob Location that is created.
*/
public val locationArn: Output
get() = javaResource.locationArn().applyValue({ args0 -> args0 })
/**
* The URL of the Azure Blob Location that was described.
*/
public val locationUri: Output
get() = javaResource.locationUri().applyValue({ args0 -> args0 })
/**
* The subdirectory in the Azure Blob Container that is used to read data from the Azure Blob Source Location.
*/
public val subdirectory: Output?
get() = javaResource.subdirectory().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* An array of key-value pairs to apply to this resource.
*/
public val tags: Output>?
get() = javaResource.tags().applyValue({ args0 ->
args0.map({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> tagToKotlin(args0) })
})
}).orElse(null)
})
}
public object LocationAzureBlobMapper : ResourceMapper {
override fun supportsMappingOfType(javaResource: Resource): Boolean =
com.pulumi.awsnative.datasync.LocationAzureBlob::class == javaResource::class
override fun map(javaResource: Resource): LocationAzureBlob = LocationAzureBlob(
javaResource as
com.pulumi.awsnative.datasync.LocationAzureBlob,
)
}
/**
* @see [LocationAzureBlob].
* @param name The _unique_ name of the resulting resource.
* @param block Builder for [LocationAzureBlob].
*/
public suspend fun locationAzureBlob(
name: String,
block: suspend LocationAzureBlobResourceBuilder.() -> Unit,
): LocationAzureBlob {
val builder = LocationAzureBlobResourceBuilder()
builder.name(name)
block(builder)
return builder.build()
}
/**
* @see [LocationAzureBlob].
* @param name The _unique_ name of the resulting resource.
*/
public fun locationAzureBlob(name: String): LocationAzureBlob {
val builder = LocationAzureBlobResourceBuilder()
builder.name(name)
return builder.build()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy