This repository has been archived by the owner on Aug 15, 2022. It is now read-only.
generated from pulumi/pulumi-tf-provider-boilerplate
/
pulumiTypes.go
83 lines (64 loc) · 2.55 KB
/
pulumiTypes.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT.
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
package config
import (
"context"
"reflect"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
type AssumeRole struct {
Policy *string `pulumi:"policy"`
RoleArn string `pulumi:"roleArn"`
SessionDuration int `pulumi:"sessionDuration"`
SessionName string `pulumi:"sessionName"`
}
// AssumeRoleInput is an input type that accepts AssumeRoleArgs and AssumeRoleOutput values.
// You can construct a concrete instance of `AssumeRoleInput` via:
//
// AssumeRoleArgs{...}
type AssumeRoleInput interface {
pulumi.Input
ToAssumeRoleOutput() AssumeRoleOutput
ToAssumeRoleOutputWithContext(context.Context) AssumeRoleOutput
}
type AssumeRoleArgs struct {
Policy pulumi.StringPtrInput `pulumi:"policy"`
RoleArn pulumi.StringInput `pulumi:"roleArn"`
SessionDuration pulumi.IntInput `pulumi:"sessionDuration"`
SessionName pulumi.StringInput `pulumi:"sessionName"`
}
func (AssumeRoleArgs) ElementType() reflect.Type {
return reflect.TypeOf((*AssumeRole)(nil)).Elem()
}
func (i AssumeRoleArgs) ToAssumeRoleOutput() AssumeRoleOutput {
return i.ToAssumeRoleOutputWithContext(context.Background())
}
func (i AssumeRoleArgs) ToAssumeRoleOutputWithContext(ctx context.Context) AssumeRoleOutput {
return pulumi.ToOutputWithContext(ctx, i).(AssumeRoleOutput)
}
type AssumeRoleOutput struct{ *pulumi.OutputState }
func (AssumeRoleOutput) ElementType() reflect.Type {
return reflect.TypeOf((*AssumeRole)(nil)).Elem()
}
func (o AssumeRoleOutput) ToAssumeRoleOutput() AssumeRoleOutput {
return o
}
func (o AssumeRoleOutput) ToAssumeRoleOutputWithContext(ctx context.Context) AssumeRoleOutput {
return o
}
func (o AssumeRoleOutput) Policy() pulumi.StringPtrOutput {
return o.ApplyT(func(v AssumeRole) *string { return v.Policy }).(pulumi.StringPtrOutput)
}
func (o AssumeRoleOutput) RoleArn() pulumi.StringOutput {
return o.ApplyT(func(v AssumeRole) string { return v.RoleArn }).(pulumi.StringOutput)
}
func (o AssumeRoleOutput) SessionDuration() pulumi.IntOutput {
return o.ApplyT(func(v AssumeRole) int { return v.SessionDuration }).(pulumi.IntOutput)
}
func (o AssumeRoleOutput) SessionName() pulumi.StringOutput {
return o.ApplyT(func(v AssumeRole) string { return v.SessionName }).(pulumi.StringOutput)
}
func init() {
pulumi.RegisterInputType(reflect.TypeOf((*AssumeRoleInput)(nil)).Elem(), AssumeRoleArgs{})
pulumi.RegisterOutputType(AssumeRoleOutput{})
}