-
Notifications
You must be signed in to change notification settings - Fork 151
/
getCloudFormationType.go
89 lines (84 loc) · 3.25 KB
/
getCloudFormationType.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package cloudformation
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// Provides details about a CloudFormation Type.
//
// ## Example Usage
//
// ```go
// package main
//
// import (
// "github.com/pulumi/pulumi-aws/sdk/v4/go/aws/cloudformation"
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
// )
//
// func main() {
// pulumi.Run(func(ctx *pulumi.Context) error {
// opt0 := "RESOURCE"
// opt1 := "AWS::Athena::WorkGroup"
// _, err := cloudformation.LookupCloudFormationType(ctx, &cloudformation.LookupCloudFormationTypeArgs{
// Type: &opt0,
// TypeName: &opt1,
// }, nil)
// if err != nil {
// return err
// }
// return nil
// })
// }
// ```
func LookupCloudFormationType(ctx *pulumi.Context, args *LookupCloudFormationTypeArgs, opts ...pulumi.InvokeOption) (*LookupCloudFormationTypeResult, error) {
var rv LookupCloudFormationTypeResult
err := ctx.Invoke("aws:cloudformation/getCloudFormationType:getCloudFormationType", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
// A collection of arguments for invoking getCloudFormationType.
type LookupCloudFormationTypeArgs struct {
// Amazon Resource Name (ARN) of the CloudFormation Type. For example, `arn:aws:cloudformation:us-west-2::type/resource/AWS-EC2-VPC`.
Arn *string `pulumi:"arn"`
// CloudFormation Registry Type. For example, `RESOURCE`.
Type *string `pulumi:"type"`
// CloudFormation Type name. For example, `AWS::EC2::VPC`.
TypeName *string `pulumi:"typeName"`
// Identifier of the CloudFormation Type version.
VersionId *string `pulumi:"versionId"`
}
// A collection of values returned by getCloudFormationType.
type LookupCloudFormationTypeResult struct {
Arn string `pulumi:"arn"`
// Identifier of the CloudFormation Type default version.
DefaultVersionId string `pulumi:"defaultVersionId"`
// Deprecation status of the CloudFormation Type.
DeprecatedStatus string `pulumi:"deprecatedStatus"`
// Description of the CloudFormation Type.
Description string `pulumi:"description"`
// URL of the documentation for the CloudFormation Type.
DocumentationUrl string `pulumi:"documentationUrl"`
// Amazon Resource Name (ARN) of the IAM Role used to register the CloudFormation Type.
ExecutionRoleArn string `pulumi:"executionRoleArn"`
// The provider-assigned unique ID for this managed resource.
Id string `pulumi:"id"`
// Whether the CloudFormation Type version is the default version.
IsDefaultVersion bool `pulumi:"isDefaultVersion"`
// List of objects containing logging configuration.
LoggingConfigs []GetCloudFormationTypeLoggingConfig `pulumi:"loggingConfigs"`
// Provisioning behavior of the CloudFormation Type.
ProvisioningType string `pulumi:"provisioningType"`
// JSON document of the CloudFormation Type schema.
Schema string `pulumi:"schema"`
// URL of the source code for the CloudFormation Type.
SourceUrl string `pulumi:"sourceUrl"`
Type string `pulumi:"type"`
TypeArn string `pulumi:"typeArn"`
TypeName string `pulumi:"typeName"`
VersionId *string `pulumi:"versionId"`
// Scope of the CloudFormation Type.
Visibility string `pulumi:"visibility"`
}