本文整理汇总了Golang中github.com/aws/aws-sdk-go/service/cloudformation.CreateStackInput.ResourceTypes方法的典型用法代码示例。如果您正苦于以下问题:Golang CreateStackInput.ResourceTypes方法的具体用法?Golang CreateStackInput.ResourceTypes怎么用?Golang CreateStackInput.ResourceTypes使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类github.com/aws/aws-sdk-go/service/cloudformation.CreateStackInput
的用法示例。
在下文中一共展示了CreateStackInput.ResourceTypes方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Golang代码示例。
示例1:
stackDetails.Parameters = map[string]string{"test-parameter-key-1": "test-parameter-value-1"}
createStackInput.Parameters = []*cloudformation.Parameter{
&cloudformation.Parameter{ParameterKey: aws.String("test-parameter-key-1"), ParameterValue: aws.String("test-parameter-value-1")},
}
})
It("makes the proper call", func() {
err := stack.Create(stackName, stackDetails)
Expect(err).ToNot(HaveOccurred())
})
})
Context("when has ResourceTypes", func() {
BeforeEach(func() {
stackDetails.ResourceTypes = []string{"test-resource-type"}
createStackInput.ResourceTypes = aws.StringSlice([]string{"test-resource-type"})
})
It("makes the proper call", func() {
err := stack.Create(stackName, stackDetails)
Expect(err).ToNot(HaveOccurred())
})
})
Context("when has StackPolicyURL", func() {
BeforeEach(func() {
stackDetails.StackPolicyURL = "test-stack-policy-url"
createStackInput.StackPolicyURL = aws.String("test-stack-policy-url")
})
It("makes the proper call", func() {