pulumi/tests/integration/transformations/python/simple/random_.py

29 lines
815 B
Python

# Copyright 2016-2021, Pulumi Corporation. All rights reserved.
from typing import Optional
import pulumi
class Random(pulumi.CustomResource):
def __init__(self,
resource_name: str,
length: pulumi.Input[int],
prefix: Optional[pulumi.Input[str]] = None,
opts: Optional[pulumi.ResourceOptions] = None):
props = {
"length": length,
"result": None,
"prefix": prefix,
}
super().__init__("testprovider:index:Random", resource_name, props, opts)
@property
@pulumi.getter
def length(self) -> pulumi.Output[int]:
return pulumi.get(self, "length")
@property
@pulumi.getter
def result(self) -> pulumi.Output[str]:
return pulumi.get(self, "result")