sparse-intern-71089
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/#applylemon-agent-27707
07/01/2020, 6:59 PM_, 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,
})
lemon-agent-27707
07/01/2020, 7:00 PMblue-computer-71271
07/01/2020, 8:38 PMblue-computer-71271
07/01/2020, 8:38 PMblue-computer-71271
07/01/2020, 8:39 PMlemon-agent-27707
07/01/2020, 8:53 PMlemon-agent-27707
07/01/2020, 8:55 PMblue-computer-71271
07/01/2020, 9:09 PMlemon-agent-27707
07/01/2020, 9:31 PMblue-computer-71271
07/01/2020, 10:30 PMblue-computer-71271
07/02/2020, 7:11 PMblue-computer-71271
07/02/2020, 7:12 PMblue-computer-71271
07/02/2020, 7:13 PMlemon-agent-27707
07/02/2020, 8:28 PMcomponent.name + resource.name
or component.name + arrayIndex
lemon-agent-27707
07/02/2020, 8:29 PMblue-computer-71271
07/02/2020, 8:57 PMblue-computer-71271
07/02/2020, 8:58 PMblue-computer-71271
07/02/2020, 8:59 PMlemon-agent-27707
07/02/2020, 9:01 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 PMblue-computer-71271
07/02/2020, 9:02 PMblue-computer-71271
07/02/2020, 9:03 PM