/
getPlaceIndex.go
112 lines (90 loc) · 4.26 KB
/
getPlaceIndex.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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
// Code generated by pulumi-language-go DO NOT EDIT.
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
package location
import (
"context"
"reflect"
"github.com/pulumi/pulumi-aws-native/sdk/go/aws"
"github.com/pulumi/pulumi-aws-native/sdk/go/aws/internal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// Definition of AWS::Location::PlaceIndex Resource Type
func LookupPlaceIndex(ctx *pulumi.Context, args *LookupPlaceIndexArgs, opts ...pulumi.InvokeOption) (*LookupPlaceIndexResult, error) {
opts = internal.PkgInvokeDefaultOpts(opts)
var rv LookupPlaceIndexResult
err := ctx.Invoke("aws-native:location:getPlaceIndex", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
type LookupPlaceIndexArgs struct {
IndexName string `pulumi:"indexName"`
}
type LookupPlaceIndexResult struct {
Arn *string `pulumi:"arn"`
CreateTime *string `pulumi:"createTime"`
DataSourceConfiguration *PlaceIndexDataSourceConfiguration `pulumi:"dataSourceConfiguration"`
Description *string `pulumi:"description"`
IndexArn *string `pulumi:"indexArn"`
PricingPlan *PlaceIndexPricingPlan `pulumi:"pricingPlan"`
// An array of key-value pairs to apply to this resource.
Tags []aws.Tag `pulumi:"tags"`
UpdateTime *string `pulumi:"updateTime"`
}
func LookupPlaceIndexOutput(ctx *pulumi.Context, args LookupPlaceIndexOutputArgs, opts ...pulumi.InvokeOption) LookupPlaceIndexResultOutput {
return pulumi.ToOutputWithContext(context.Background(), args).
ApplyT(func(v interface{}) (LookupPlaceIndexResult, error) {
args := v.(LookupPlaceIndexArgs)
r, err := LookupPlaceIndex(ctx, &args, opts...)
var s LookupPlaceIndexResult
if r != nil {
s = *r
}
return s, err
}).(LookupPlaceIndexResultOutput)
}
type LookupPlaceIndexOutputArgs struct {
IndexName pulumi.StringInput `pulumi:"indexName"`
}
func (LookupPlaceIndexOutputArgs) ElementType() reflect.Type {
return reflect.TypeOf((*LookupPlaceIndexArgs)(nil)).Elem()
}
type LookupPlaceIndexResultOutput struct{ *pulumi.OutputState }
func (LookupPlaceIndexResultOutput) ElementType() reflect.Type {
return reflect.TypeOf((*LookupPlaceIndexResult)(nil)).Elem()
}
func (o LookupPlaceIndexResultOutput) ToLookupPlaceIndexResultOutput() LookupPlaceIndexResultOutput {
return o
}
func (o LookupPlaceIndexResultOutput) ToLookupPlaceIndexResultOutputWithContext(ctx context.Context) LookupPlaceIndexResultOutput {
return o
}
func (o LookupPlaceIndexResultOutput) Arn() pulumi.StringPtrOutput {
return o.ApplyT(func(v LookupPlaceIndexResult) *string { return v.Arn }).(pulumi.StringPtrOutput)
}
func (o LookupPlaceIndexResultOutput) CreateTime() pulumi.StringPtrOutput {
return o.ApplyT(func(v LookupPlaceIndexResult) *string { return v.CreateTime }).(pulumi.StringPtrOutput)
}
func (o LookupPlaceIndexResultOutput) DataSourceConfiguration() PlaceIndexDataSourceConfigurationPtrOutput {
return o.ApplyT(func(v LookupPlaceIndexResult) *PlaceIndexDataSourceConfiguration { return v.DataSourceConfiguration }).(PlaceIndexDataSourceConfigurationPtrOutput)
}
func (o LookupPlaceIndexResultOutput) Description() pulumi.StringPtrOutput {
return o.ApplyT(func(v LookupPlaceIndexResult) *string { return v.Description }).(pulumi.StringPtrOutput)
}
func (o LookupPlaceIndexResultOutput) IndexArn() pulumi.StringPtrOutput {
return o.ApplyT(func(v LookupPlaceIndexResult) *string { return v.IndexArn }).(pulumi.StringPtrOutput)
}
func (o LookupPlaceIndexResultOutput) PricingPlan() PlaceIndexPricingPlanPtrOutput {
return o.ApplyT(func(v LookupPlaceIndexResult) *PlaceIndexPricingPlan { return v.PricingPlan }).(PlaceIndexPricingPlanPtrOutput)
}
// An array of key-value pairs to apply to this resource.
func (o LookupPlaceIndexResultOutput) Tags() aws.TagArrayOutput {
return o.ApplyT(func(v LookupPlaceIndexResult) []aws.Tag { return v.Tags }).(aws.TagArrayOutput)
}
func (o LookupPlaceIndexResultOutput) UpdateTime() pulumi.StringPtrOutput {
return o.ApplyT(func(v LookupPlaceIndexResult) *string { return v.UpdateTime }).(pulumi.StringPtrOutput)
}
func init() {
pulumi.RegisterOutputType(LookupPlaceIndexResultOutput{})
}