class FooArgs:
    first_arg: Input[str] = pulumi.property("firstArg")
    second_arg: Optional[Input[float]] = pulumi.property("secondArg")

    def __init__(self, first_arg: Input[str], second_arg: Optional[Input[float]]=None):
        pulumi.set(self, "first_arg", first_arg)
        pulumi.set(self, "second_arg", second_arg)
        class MyOutput:
            first_arg: str = pulumi.property("firstArg")
            second_arg: int = pulumi.property("secondArg")

            def __init__(self, first_arg: str, second_arg: int):
                pulumi.set(self, "first_arg", first_arg)
                pulumi.set(self, "second_arg", second_arg)

            def _translate_property(self, prop: str) -> str:
                return camel_case_to_snake_case.get(prop) or prop
Example #3
0
class MyInputType:
    first_value: pulumi.Input[str] = pulumi.property("firstValue")
    second_value: Optional[pulumi.Input[float]] = pulumi.property(
        "secondValue")

    def __init__(self,
                 first_value: pulumi.Input[str],
                 second_value: Optional[pulumi.Input[float]] = None):
        pulumi.set(self, "first_value", first_value)
        pulumi.set(self, "second_value", second_value)
class InvalidTypeOptionalMappingOptionalStr(dict):
    value: Optional[Mapping[str, Optional[str]]] = pulumi.property("value")
class InvalidTypeListStr(dict):
    value: List[str] = pulumi.property("value")
Example #6
0
class Resource4(pulumi.Resource):
    nested_value: pulumi.Output['Nested'] = pulumi.property("nestedValue")
class InvalidTypeOptionalDictOptionalStr(dict):
    value: Optional[Dict[str, Optional[str]]] = pulumi.property("value")
Example #8
0
class MySimpleInputType:
    first_value: pulumi.Input[str] = pulumi.property("firstValue")
    second_value: Optional[pulumi.Input[float]] = pulumi.property(
        "secondValue", default=None)
Example #9
0
class DefaultArgs:
    a: pulumi.Input[str] = pulumi.property("a", default="foo")
    b: pulumi.Input[str] = pulumi.property("b", default="bar")
    c: Optional[pulumi.Input[str]] = pulumi.property("c", default=None)
class InvalidTypeOptionalSequenceOptionalStr(dict):
    value: Optional[Sequence[Optional[str]]] = pulumi.property("value")
Example #11
0
class Additional(dict):
    first_value: str = property("firstValue")
    second_value: Optional[float] = property("secondValue", default=None)
Example #12
0
class Additional(dict):
    first_value: str = pulumi.property("firstValue")
    second_value: Optional[float] = pulumi.property("secondValue")
class InvalidTypeSequenceStr(dict):
    value: Sequence[str] = pulumi.property("value")
Example #14
0
class Extra(dict):
    first_value: str = pulumi.property("firstValue")
    second_value: Optional[float] = pulumi.property("secondValue")

    def _translate_property(self, prop):
        return CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop
Example #15
0
 class ProviderFeaturesNetworkArgs:
     relaxed_locking: Optional[pulumi.Input[bool]] = pulumi.property(
         "relaxedLocking")
Example #16
0
 class ProviderAssumeRoleArgs:
     role_arn: Optional[pulumi.Input[str]] = pulumi.property("roleArn")
     tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]
Example #17
0
class MyOutputTypeDictTranslated(dict):
    first_value: str = pulumi.property("firstValue")
    second_value: Optional[float] = pulumi.property("secondValue", default=None)

    def _translate_property(self, prop):
        return CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop
Example #18
0
class MyOutputTypeDict(dict):
    first_value: str = pulumi.property("firstValue")
    second_value: Optional[float] = pulumi.property("secondValue", default=None)
class InvalidTypeOptionalListOptionalStr(dict):
    value: Optional[List[Optional[str]]] = pulumi.property("value")
class Foo(dict):
    first_arg: str = pulumi.property("firstArg")
    second_arg: float = pulumi.property("secondArg")

    def _translate_property(self, prop: str) -> str:
        return camel_case_to_snake_case.get(prop) or prop
class BarMappingSequence(dict):
    third_arg: Foo = pulumi.property("thirdArg")
    third_optional_arg: Optional[Foo] = pulumi.property("thirdOptionalArg")

    fourth_arg: Mapping[str, Foo] = pulumi.property("fourthArg")
    fourth_optional_arg: Mapping[str, Optional[Foo]] = pulumi.property(
        "fourthOptionalArg")

    fifth_arg: Sequence[Foo] = pulumi.property("fifthArg")
    fifth_optional_arg: Sequence[Optional[Foo]] = pulumi.property(
        "fifthOptionalArg")

    sixth_arg: Mapping[str, Sequence[Foo]] = pulumi.property("sixthArg")
    sixth_optional_arg: Mapping[
        str, Optional[Sequence[Foo]]] = pulumi.property("sixthOptionalArg")
    sixth_optional_optional_arg: Mapping[
        str, Optional[Sequence[Optional[Foo]]]] = pulumi.property(
            "sixthOptionalOptionalArg")

    seventh_arg: Sequence[Mapping[str, Foo]] = pulumi.property("seventhArg")
    seventh_optional_arg: Sequence[Optional[Mapping[
        str, Foo]]] = pulumi.property("seventhOptionalArg")
    seventh_optional_optional_arg: Sequence[Optional[Mapping[
        str, Optional[Foo]]]] = pulumi.property("seventhOptionalOptionalArg")

    eighth_arg: Sequence[Mapping[str,
                                 Sequence[Foo]]] = pulumi.property("eighthArg")
    eighth_optional_arg: Sequence[Optional[Mapping[
        str, Sequence[Foo]]]] = pulumi.property("eighthOptionalArg")
    eighth_optional_optional_arg: Sequence[Optional[Mapping[
        str, Optional[Sequence[Foo]]]]] = pulumi.property(
            "eighthOptionalOptionalArg")
    eighth_optional_optional_optional_arg: Sequence[Optional[Mapping[
        str, Optional[Sequence[Optional[Foo]]]]]] = pulumi.property(
            "eighthOptionalOptionalOptionalArg")

    def _translate_property(self, prop: str) -> str:
        return camel_case_to_snake_case.get(prop) or prop
class InvalidTypeStr(dict):
    value: str = pulumi.property("value")
Example #23
0
class AdditionalArgs:
    first_value: Input[str] = property("firstValue")
    second_value: Optional[Input[float]] = property("secondValue",
                                                    default=None)
class Bar(dict):
    third_arg: Foo = pulumi.property("thirdArg")
    third_optional_arg: Optional[Foo] = pulumi.property("thirdOptionalArg")

    fourth_arg: Dict[str, Foo] = pulumi.property("fourthArg")
    fourth_optional_arg: Dict[str, Optional[Foo]] = pulumi.property(
        "fourthOptionalArg")

    fifth_arg: List[Foo] = pulumi.property("fifthArg")
    fifth_optional_arg: List[Optional[Foo]] = pulumi.property(
        "fifthOptionalArg")

    sixth_arg: Dict[str, List[Foo]] = pulumi.property("sixthArg")
    sixth_optional_arg: Dict[str, Optional[List[Foo]]] = pulumi.property(
        "sixthOptionalArg")
    sixth_optional_optional_arg: Dict[
        str, Optional[List[Optional[Foo]]]] = pulumi.property(
            "sixthOptionalOptionalArg")

    seventh_arg: List[Dict[str, Foo]] = pulumi.property("seventhArg")
    seventh_optional_arg: List[Optional[Dict[str, Foo]]] = pulumi.property(
        "seventhOptionalArg")
    seventh_optional_optional_arg: List[Optional[Dict[
        str, Optional[Foo]]]] = pulumi.property("seventhOptionalOptionalArg")

    eighth_arg: List[Dict[str, List[Foo]]] = pulumi.property("eighthArg")
    eighth_optional_arg: List[Optional[Dict[
        str, List[Foo]]]] = pulumi.property("eighthOptionalArg")
    eighth_optional_optional_arg: List[Optional[Dict[
        str,
        Optional[List[Foo]]]]] = pulumi.property("eighthOptionalOptionalArg")
    eighth_optional_optional_optional_arg: List[Optional[Dict[
        str, Optional[List[Optional[Foo]]]]]] = pulumi.property(
            "eighthOptionalOptionalOptionalArg")

    def _translate_property(self, prop: str) -> str:
        return camel_case_to_snake_case.get(prop) or prop
class InvalidTypeDictStr(dict):
    value: Dict[str, str] = pulumi.property("value")
class InvalidTypeMappingStr(dict):
    value: Mapping[str, str] = pulumi.property("value")
Example #27
0
class BarArgs:
    tag_args: Input[dict] = pulumi.property("tagArgs")

    def __init__(self, tag_args: Input[dict]):
        pulumi.set(self, "tag_args", tag_args)
Example #28
0
class MyFunctionNestedResult:
    first_value: str = pulumi.property("firstValue")
    second_value: float = pulumi.property("secondValue")