![JAR search and dependency download from the Maven repository](/logo.png)
io.cloudshiftdev.awscdk.services.servicecatalog.CfnServiceActionAssociation.kt Maven / Gradle / Ivy
@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION")
package io.cloudshiftdev.awscdk.services.servicecatalog
import io.cloudshiftdev.awscdk.CfnResource
import io.cloudshiftdev.awscdk.IInspectable
import io.cloudshiftdev.awscdk.TreeInspector
import io.cloudshiftdev.awscdk.common.CdkDslMarker
import kotlin.String
import kotlin.Unit
import io.cloudshiftdev.constructs.Construct as CloudshiftdevConstructsConstruct
import software.constructs.Construct as SoftwareConstructsConstruct
/**
* A self-service action association consisting of the Action ID, the Product ID, and the
* Provisioning Artifact ID.
*
* Example:
*
* ```
* // The code below shows an example of how to instantiate this type.
* // The values are placeholders you should change.
* import io.cloudshiftdev.awscdk.services.servicecatalog.*;
* CfnServiceActionAssociation cfnServiceActionAssociation =
* CfnServiceActionAssociation.Builder.create(this, "MyCfnServiceActionAssociation")
* .productId("productId")
* .provisioningArtifactId("provisioningArtifactId")
* .serviceActionId("serviceActionId")
* .build();
* ```
*
* [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicecatalog-serviceactionassociation.html)
*/
public open class CfnServiceActionAssociation(
cdkObject: software.amazon.awscdk.services.servicecatalog.CfnServiceActionAssociation,
) : CfnResource(cdkObject),
IInspectable {
public constructor(
scope: CloudshiftdevConstructsConstruct,
id: String,
props: CfnServiceActionAssociationProps,
) :
this(software.amazon.awscdk.services.servicecatalog.CfnServiceActionAssociation(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap),
id, props.let(CfnServiceActionAssociationProps.Companion::unwrap))
)
public constructor(
scope: CloudshiftdevConstructsConstruct,
id: String,
props: CfnServiceActionAssociationProps.Builder.() -> Unit,
) : this(scope, id, CfnServiceActionAssociationProps(props)
)
/**
* Examines the CloudFormation resource and discloses attributes.
*
* @param inspector tree inspector to collect and process attributes.
*/
public override fun inspect(inspector: TreeInspector) {
unwrap(this).inspect(inspector.let(TreeInspector.Companion::unwrap))
}
/**
* The product identifier.
*/
public open fun productId(): String = unwrap(this).getProductId()
/**
* The product identifier.
*/
public open fun productId(`value`: String) {
unwrap(this).setProductId(`value`)
}
/**
* The identifier of the provisioning artifact.
*/
public open fun provisioningArtifactId(): String = unwrap(this).getProvisioningArtifactId()
/**
* The identifier of the provisioning artifact.
*/
public open fun provisioningArtifactId(`value`: String) {
unwrap(this).setProvisioningArtifactId(`value`)
}
/**
* The self-service action identifier.
*/
public open fun serviceActionId(): String = unwrap(this).getServiceActionId()
/**
* The self-service action identifier.
*/
public open fun serviceActionId(`value`: String) {
unwrap(this).setServiceActionId(`value`)
}
/**
* A fluent builder for
* [io.cloudshiftdev.awscdk.services.servicecatalog.CfnServiceActionAssociation].
*/
@CdkDslMarker
public interface Builder {
/**
* The product identifier.
*
* For example, `prod-abcdzk7xy33qa` .
*
* [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicecatalog-serviceactionassociation.html#cfn-servicecatalog-serviceactionassociation-productid)
* @param productId The product identifier.
*/
public fun productId(productId: String)
/**
* The identifier of the provisioning artifact.
*
* For example, `pa-4abcdjnxjj6ne` .
*
* [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicecatalog-serviceactionassociation.html#cfn-servicecatalog-serviceactionassociation-provisioningartifactid)
* @param provisioningArtifactId The identifier of the provisioning artifact.
*/
public fun provisioningArtifactId(provisioningArtifactId: String)
/**
* The self-service action identifier.
*
* For example, `act-fs7abcd89wxyz` .
*
* [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicecatalog-serviceactionassociation.html#cfn-servicecatalog-serviceactionassociation-serviceactionid)
* @param serviceActionId The self-service action identifier.
*/
public fun serviceActionId(serviceActionId: String)
}
private class BuilderImpl(
scope: SoftwareConstructsConstruct,
id: String,
) : Builder {
private val cdkBuilder:
software.amazon.awscdk.services.servicecatalog.CfnServiceActionAssociation.Builder =
software.amazon.awscdk.services.servicecatalog.CfnServiceActionAssociation.Builder.create(scope,
id)
/**
* The product identifier.
*
* For example, `prod-abcdzk7xy33qa` .
*
* [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicecatalog-serviceactionassociation.html#cfn-servicecatalog-serviceactionassociation-productid)
* @param productId The product identifier.
*/
override fun productId(productId: String) {
cdkBuilder.productId(productId)
}
/**
* The identifier of the provisioning artifact.
*
* For example, `pa-4abcdjnxjj6ne` .
*
* [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicecatalog-serviceactionassociation.html#cfn-servicecatalog-serviceactionassociation-provisioningartifactid)
* @param provisioningArtifactId The identifier of the provisioning artifact.
*/
override fun provisioningArtifactId(provisioningArtifactId: String) {
cdkBuilder.provisioningArtifactId(provisioningArtifactId)
}
/**
* The self-service action identifier.
*
* For example, `act-fs7abcd89wxyz` .
*
* [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicecatalog-serviceactionassociation.html#cfn-servicecatalog-serviceactionassociation-serviceactionid)
* @param serviceActionId The self-service action identifier.
*/
override fun serviceActionId(serviceActionId: String) {
cdkBuilder.serviceActionId(serviceActionId)
}
public fun build(): software.amazon.awscdk.services.servicecatalog.CfnServiceActionAssociation =
cdkBuilder.build()
}
public companion object {
public val CFN_RESOURCE_TYPE_NAME: String =
software.amazon.awscdk.services.servicecatalog.CfnServiceActionAssociation.CFN_RESOURCE_TYPE_NAME
public operator fun invoke(
scope: CloudshiftdevConstructsConstruct,
id: String,
block: Builder.() -> Unit = {},
): CfnServiceActionAssociation {
val builderImpl = BuilderImpl(CloudshiftdevConstructsConstruct.unwrap(scope), id)
return CfnServiceActionAssociation(builderImpl.apply(block).build())
}
internal
fun wrap(cdkObject: software.amazon.awscdk.services.servicecatalog.CfnServiceActionAssociation):
CfnServiceActionAssociation = CfnServiceActionAssociation(cdkObject)
internal fun unwrap(wrapped: CfnServiceActionAssociation):
software.amazon.awscdk.services.servicecatalog.CfnServiceActionAssociation =
wrapped.cdkObject as
software.amazon.awscdk.services.servicecatalog.CfnServiceActionAssociation
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy