com.pulumi.gcp.apigee.kotlin.SharedflowDeployment.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.gcp.apigee.kotlin
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
/**
* Builder for [SharedflowDeployment].
*/
@PulumiTagMarker
public class SharedflowDeploymentResourceBuilder internal constructor() {
public var name: String? = null
public var args: SharedflowDeploymentArgs = SharedflowDeploymentArgs()
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 SharedflowDeploymentArgsBuilder.() -> Unit) {
val builder = SharedflowDeploymentArgsBuilder()
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(): SharedflowDeployment {
val builtJavaResource = com.pulumi.gcp.apigee.SharedflowDeployment(
this.name,
this.args.toJava(),
this.opts.toJava(),
)
return SharedflowDeployment(builtJavaResource)
}
}
/**
* Deploys a revision of a sharedflow.
* To get more information about SharedflowDeployment, see:
* * [API documentation](https://cloud.google.com/apigee/docs/reference/apis/apigee/rest/v1/organizations.environments.sharedflows.revisions.deployments)
* * How-to Guides
* * [sharedflows.revisions.deployments](https://cloud.google.com/apigee/docs/reference/apis/apigee/rest/v1/organizations.environments.sharedflows.revisions.deployments)
* ## Import
* SharedflowDeployment can be imported using any of these accepted formats:
* * `organizations/{{org_id}}/environments/{{environment}}/sharedflows/{{sharedflow_id}}/revisions/{{revision}}/deployments/{{name}}`
* * `{{org_id}}/{{environment}}/{{sharedflow_id}}/{{revision}}/{{name}}`
* When using the `pulumi import` command, SharedflowDeployment can be imported using one of the formats above. For example:
* ```sh
* $ pulumi import gcp:apigee/sharedflowDeployment:SharedflowDeployment default organizations/{{org_id}}/environments/{{environment}}/sharedflows/{{sharedflow_id}}/revisions/{{revision}}/deployments/{{name}}
* ```
* ```sh
* $ pulumi import gcp:apigee/sharedflowDeployment:SharedflowDeployment default {{org_id}}/{{environment}}/{{sharedflow_id}}/{{revision}}/{{name}}
* ```
*/
public class SharedflowDeployment internal constructor(
override val javaResource: com.pulumi.gcp.apigee.SharedflowDeployment,
) : KotlinCustomResource(javaResource, SharedflowDeploymentMapper) {
/**
* The resource ID of the environment.
*/
public val environment: Output
get() = javaResource.environment().applyValue({ args0 -> args0 })
/**
* The Apigee Organization associated with the Sharedflow
*/
public val orgId: Output
get() = javaResource.orgId().applyValue({ args0 -> args0 })
/**
* Revision of the Sharedflow to be deployed.
* - - -
*/
public val revision: Output
get() = javaResource.revision().applyValue({ args0 -> args0 })
/**
* The service account represents the identity of the deployed proxy, and determines what permissions it has. The format must be {ACCOUNT_ID}@{PROJECT}.iam.gserviceaccount.com.
*/
public val serviceAccount: Output?
get() = javaResource.serviceAccount().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* Id of the Sharedflow to be deployed.
*/
public val sharedflowId: Output
get() = javaResource.sharedflowId().applyValue({ args0 -> args0 })
}
public object SharedflowDeploymentMapper : ResourceMapper {
override fun supportsMappingOfType(javaResource: Resource): Boolean =
com.pulumi.gcp.apigee.SharedflowDeployment::class == javaResource::class
override fun map(javaResource: Resource): SharedflowDeployment = SharedflowDeployment(
javaResource
as com.pulumi.gcp.apigee.SharedflowDeployment,
)
}
/**
* @see [SharedflowDeployment].
* @param name The _unique_ name of the resulting resource.
* @param block Builder for [SharedflowDeployment].
*/
public suspend fun sharedflowDeployment(
name: String,
block: suspend SharedflowDeploymentResourceBuilder.() -> Unit,
): SharedflowDeployment {
val builder = SharedflowDeploymentResourceBuilder()
builder.name(name)
block(builder)
return builder.build()
}
/**
* @see [SharedflowDeployment].
* @param name The _unique_ name of the resulting resource.
*/
public fun sharedflowDeployment(name: String): SharedflowDeployment {
val builder = SharedflowDeploymentResourceBuilder()
builder.name(name)
return builder.build()
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy