io.burkard.cdk.services.greengrass.cfnFunctionDefinition.ResourceAccessPolicyProperty.scala Maven / Gradle / Ivy
The newest version!
package io.burkard.cdk.services.greengrass.cfnFunctionDefinition
@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object ResourceAccessPolicyProperty {
def apply(
resourceId: String,
permission: Option[String] = None
): software.amazon.awscdk.services.greengrass.CfnFunctionDefinition.ResourceAccessPolicyProperty =
(new software.amazon.awscdk.services.greengrass.CfnFunctionDefinition.ResourceAccessPolicyProperty.Builder)
.resourceId(resourceId)
.permission(permission.orNull)
.build()
}