本文整理匯總了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() {