blue-computer-71271
07/01/2020, 6:11 PMlemon-agent-27707
07/01/2020, 6:48 PM.Apply
to access the raw values. Can you explain a little more about what you're trying to accomplish?
It might be worth reading through the programming model docs if you haven't already: https://www.pulumi.com/docs/intro/concepts/programming-model/#apply_, err = apigateway.NewMethodSettings(ctx, "methodSettings", &apigateway.MethodSettingsArgs{
MethodPath: pulumi.All(testResource.PathPart, testMethod.HttpMethod).ApplyT(func(_args []interface{}) (string, error) {
pathPart := _args[0].(string)
httpMethod := _args[1].(string)
return fmt.Sprintf("%v%v%v", pathPart, "/", httpMethod), nil
}).(pulumi.StringOutput),
RestApi: testRestApi.ID(),
Settings: &apigateway.MethodSettingsSettingsArgs{
LoggingLevel: pulumi.String("INFO"),
MetricsEnabled: pulumi.Bool(true),
},
StageName: testStage.StageName,
})
blue-computer-71271
07/01/2020, 8:38 PMlemon-agent-27707
07/01/2020, 8:53 PMblue-computer-71271
07/01/2020, 9:09 PMlemon-agent-27707
07/01/2020, 9:31 PMblue-computer-71271
07/01/2020, 10:30 PMlemon-agent-27707
07/02/2020, 8:28 PMcomponent.name + resource.name
or component.name + arrayIndex
blue-computer-71271
07/02/2020, 8:57 PMlemon-agent-27707
07/02/2020, 9:01 PMname
property in their inputs, but this does things like override autonaming. So you have to worry about adding entropy yourself.blue-computer-71271
07/02/2020, 9:02 PM