github.com/pulumi/pulumi-aws/sdk/v6@v6.32.0/go/aws/location/getTracker.go (about) 1 // Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT. 2 // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** 3 4 package location 5 6 import ( 7 "context" 8 "reflect" 9 10 "github.com/pulumi/pulumi-aws/sdk/v6/go/aws/internal" 11 "github.com/pulumi/pulumi/sdk/v3/go/pulumi" 12 ) 13 14 // Retrieve information about a Location Service Tracker. 15 // 16 // ## Example Usage 17 // 18 // <!--Start PulumiCodeChooser --> 19 // ```go 20 // package main 21 // 22 // import ( 23 // 24 // "github.com/pulumi/pulumi-aws/sdk/v6/go/aws/location" 25 // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" 26 // 27 // ) 28 // 29 // func main() { 30 // pulumi.Run(func(ctx *pulumi.Context) error { 31 // _, err := location.LookupTracker(ctx, &location.LookupTrackerArgs{ 32 // TrackerName: "example", 33 // }, nil) 34 // if err != nil { 35 // return err 36 // } 37 // return nil 38 // }) 39 // } 40 // 41 // ``` 42 // <!--End PulumiCodeChooser --> 43 func LookupTracker(ctx *pulumi.Context, args *LookupTrackerArgs, opts ...pulumi.InvokeOption) (*LookupTrackerResult, error) { 44 opts = internal.PkgInvokeDefaultOpts(opts) 45 var rv LookupTrackerResult 46 err := ctx.Invoke("aws:location/getTracker:getTracker", args, &rv, opts...) 47 if err != nil { 48 return nil, err 49 } 50 return &rv, nil 51 } 52 53 // A collection of arguments for invoking getTracker. 54 type LookupTrackerArgs struct { 55 // Key-value map of resource tags for the tracker. 56 Tags map[string]string `pulumi:"tags"` 57 // Name of the tracker resource. 58 TrackerName string `pulumi:"trackerName"` 59 } 60 61 // A collection of values returned by getTracker. 62 type LookupTrackerResult struct { 63 // Timestamp for when the tracker resource was created in ISO 8601 format. 64 CreateTime string `pulumi:"createTime"` 65 // Optional description for the tracker resource. 66 Description string `pulumi:"description"` 67 // The provider-assigned unique ID for this managed resource. 68 Id string `pulumi:"id"` 69 // Key identifier for an AWS KMS customer managed key assigned to the Amazon Location resource. 70 KmsKeyId string `pulumi:"kmsKeyId"` 71 // Position filtering method of the tracker resource. 72 PositionFiltering string `pulumi:"positionFiltering"` 73 // Key-value map of resource tags for the tracker. 74 Tags map[string]string `pulumi:"tags"` 75 // ARN for the tracker resource. Used when you need to specify a resource across all AWS. 76 TrackerArn string `pulumi:"trackerArn"` 77 TrackerName string `pulumi:"trackerName"` 78 // Timestamp for when the tracker resource was last updated in ISO 8601 format. 79 UpdateTime string `pulumi:"updateTime"` 80 } 81 82 func LookupTrackerOutput(ctx *pulumi.Context, args LookupTrackerOutputArgs, opts ...pulumi.InvokeOption) LookupTrackerResultOutput { 83 return pulumi.ToOutputWithContext(context.Background(), args). 84 ApplyT(func(v interface{}) (LookupTrackerResult, error) { 85 args := v.(LookupTrackerArgs) 86 r, err := LookupTracker(ctx, &args, opts...) 87 var s LookupTrackerResult 88 if r != nil { 89 s = *r 90 } 91 return s, err 92 }).(LookupTrackerResultOutput) 93 } 94 95 // A collection of arguments for invoking getTracker. 96 type LookupTrackerOutputArgs struct { 97 // Key-value map of resource tags for the tracker. 98 Tags pulumi.StringMapInput `pulumi:"tags"` 99 // Name of the tracker resource. 100 TrackerName pulumi.StringInput `pulumi:"trackerName"` 101 } 102 103 func (LookupTrackerOutputArgs) ElementType() reflect.Type { 104 return reflect.TypeOf((*LookupTrackerArgs)(nil)).Elem() 105 } 106 107 // A collection of values returned by getTracker. 108 type LookupTrackerResultOutput struct{ *pulumi.OutputState } 109 110 func (LookupTrackerResultOutput) ElementType() reflect.Type { 111 return reflect.TypeOf((*LookupTrackerResult)(nil)).Elem() 112 } 113 114 func (o LookupTrackerResultOutput) ToLookupTrackerResultOutput() LookupTrackerResultOutput { 115 return o 116 } 117 118 func (o LookupTrackerResultOutput) ToLookupTrackerResultOutputWithContext(ctx context.Context) LookupTrackerResultOutput { 119 return o 120 } 121 122 // Timestamp for when the tracker resource was created in ISO 8601 format. 123 func (o LookupTrackerResultOutput) CreateTime() pulumi.StringOutput { 124 return o.ApplyT(func(v LookupTrackerResult) string { return v.CreateTime }).(pulumi.StringOutput) 125 } 126 127 // Optional description for the tracker resource. 128 func (o LookupTrackerResultOutput) Description() pulumi.StringOutput { 129 return o.ApplyT(func(v LookupTrackerResult) string { return v.Description }).(pulumi.StringOutput) 130 } 131 132 // The provider-assigned unique ID for this managed resource. 133 func (o LookupTrackerResultOutput) Id() pulumi.StringOutput { 134 return o.ApplyT(func(v LookupTrackerResult) string { return v.Id }).(pulumi.StringOutput) 135 } 136 137 // Key identifier for an AWS KMS customer managed key assigned to the Amazon Location resource. 138 func (o LookupTrackerResultOutput) KmsKeyId() pulumi.StringOutput { 139 return o.ApplyT(func(v LookupTrackerResult) string { return v.KmsKeyId }).(pulumi.StringOutput) 140 } 141 142 // Position filtering method of the tracker resource. 143 func (o LookupTrackerResultOutput) PositionFiltering() pulumi.StringOutput { 144 return o.ApplyT(func(v LookupTrackerResult) string { return v.PositionFiltering }).(pulumi.StringOutput) 145 } 146 147 // Key-value map of resource tags for the tracker. 148 func (o LookupTrackerResultOutput) Tags() pulumi.StringMapOutput { 149 return o.ApplyT(func(v LookupTrackerResult) map[string]string { return v.Tags }).(pulumi.StringMapOutput) 150 } 151 152 // ARN for the tracker resource. Used when you need to specify a resource across all AWS. 153 func (o LookupTrackerResultOutput) TrackerArn() pulumi.StringOutput { 154 return o.ApplyT(func(v LookupTrackerResult) string { return v.TrackerArn }).(pulumi.StringOutput) 155 } 156 157 func (o LookupTrackerResultOutput) TrackerName() pulumi.StringOutput { 158 return o.ApplyT(func(v LookupTrackerResult) string { return v.TrackerName }).(pulumi.StringOutput) 159 } 160 161 // Timestamp for when the tracker resource was last updated in ISO 8601 format. 162 func (o LookupTrackerResultOutput) UpdateTime() pulumi.StringOutput { 163 return o.ApplyT(func(v LookupTrackerResult) string { return v.UpdateTime }).(pulumi.StringOutput) 164 } 165 166 func init() { 167 pulumi.RegisterOutputType(LookupTrackerResultOutput{}) 168 }