swift-machine-98066
10/03/2022, 7:05 PMbillowy-army-68599
10/03/2022, 7:06 PMStringOutputArray
?type MyStruct struct {
Arns pulumi.StringOutputArray
}
swift-machine-98066
10/03/2022, 7:07 PMCannot use 'role.Arn' (type pulumi.StringOutput) as the type pulumi.String ?
billowy-army-68599
10/03/2022, 7:09 PMswift-machine-98066
10/03/2022, 7:10 PMfunc (f *flowLog) CreateIAMRole(name string) *flowLog {
role, err := iam.NewRole(f.vpcSetupCreateHelper.ctx, name, &iam.RoleArgs{
AssumeRolePolicy: pulumi.Any(fmt.Sprintf(`{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "",
"Effect": "Allow",
"Principal": {
"Service": "<http://vpc-flow-logs.amazonaws.com|vpc-flow-logs.amazonaws.com>"
},
"Action": "sts:AssumeRole"
}
]
}
`)),
})
if err != nil {
panic(err)
}
f.IamRoleName = role.Arn
return f
}
type flowLog struct {
Name String
CloudwatchArgs cloudwatch.LogGroupArgs
FlowlogArgs ec2.FlowLogArgs
IamRoleName pulumi.String
GroupName pulumi.String
TrafficType String
UseS3 bool
S3BucketName String
vpcSetupCreateHelper *vpcSetupCreateHelper
provider pulumi.ProviderResource
}
billowy-army-68599
10/03/2022, 7:11 PMIamRoleName pulumi.StringOutput
swift-machine-98066
10/03/2022, 7:20 PMbillowy-army-68599
10/03/2022, 7:23 PMswift-machine-98066
10/03/2022, 7:23 PMbillowy-army-68599
10/03/2022, 7:25 PMswift-machine-98066
10/03/2022, 7:25 PMstring
into their own string type.billowy-army-68599
10/03/2022, 7:28 PMswift-machine-98066
10/03/2022, 7:28 PMbillowy-army-68599
10/03/2022, 7:29 PMswift-machine-98066
10/03/2022, 7:30 PMbillowy-army-68599
10/03/2022, 7:32 PM