github.com/pulumi/pulumi-aws/sdk/v6@v6.32.0/go/aws/codeguruprofiler/getProfilingGroup.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 codeguruprofiler 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 // Data source for managing an AWS CodeGuru Profiler Profiling Group. 15 // 16 // ## Example Usage 17 // 18 // ### Basic Usage 19 // 20 // <!--Start PulumiCodeChooser --> 21 // ```go 22 // package main 23 // 24 // import ( 25 // 26 // "github.com/pulumi/pulumi-aws/sdk/v6/go/aws/codeguruprofiler" 27 // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" 28 // 29 // ) 30 // 31 // func main() { 32 // pulumi.Run(func(ctx *pulumi.Context) error { 33 // _, err := codeguruprofiler.LookupProfilingGroup(ctx, &codeguruprofiler.LookupProfilingGroupArgs{ 34 // Name: "example", 35 // }, nil) 36 // if err != nil { 37 // return err 38 // } 39 // return nil 40 // }) 41 // } 42 // 43 // ``` 44 // <!--End PulumiCodeChooser --> 45 func LookupProfilingGroup(ctx *pulumi.Context, args *LookupProfilingGroupArgs, opts ...pulumi.InvokeOption) (*LookupProfilingGroupResult, error) { 46 opts = internal.PkgInvokeDefaultOpts(opts) 47 var rv LookupProfilingGroupResult 48 err := ctx.Invoke("aws:codeguruprofiler/getProfilingGroup:getProfilingGroup", args, &rv, opts...) 49 if err != nil { 50 return nil, err 51 } 52 return &rv, nil 53 } 54 55 // A collection of arguments for invoking getProfilingGroup. 56 type LookupProfilingGroupArgs struct { 57 // The name of the profiling group. 58 Name string `pulumi:"name"` 59 } 60 61 // A collection of values returned by getProfilingGroup. 62 type LookupProfilingGroupResult struct { 63 // Profiling Group agent orchestration config 64 AgentOrchestrationConfigs []GetProfilingGroupAgentOrchestrationConfig `pulumi:"agentOrchestrationConfigs"` 65 // ARN of the Profiling Group. 66 Arn string `pulumi:"arn"` 67 // The compute platform of the profiling group. 68 ComputePlatform string `pulumi:"computePlatform"` 69 // Timestamp when Profiling Group was created. 70 CreatedAt string `pulumi:"createdAt"` 71 Id string `pulumi:"id"` 72 Name string `pulumi:"name"` 73 // The status of the Profiling Group. 74 ProfilingStatuses []GetProfilingGroupProfilingStatus `pulumi:"profilingStatuses"` 75 // Mapping of Key-Value tags for the resource. 76 Tags map[string]string `pulumi:"tags"` 77 // Timestamp when Profiling Group was updated. 78 UpdatedAt string `pulumi:"updatedAt"` 79 } 80 81 func LookupProfilingGroupOutput(ctx *pulumi.Context, args LookupProfilingGroupOutputArgs, opts ...pulumi.InvokeOption) LookupProfilingGroupResultOutput { 82 return pulumi.ToOutputWithContext(context.Background(), args). 83 ApplyT(func(v interface{}) (LookupProfilingGroupResult, error) { 84 args := v.(LookupProfilingGroupArgs) 85 r, err := LookupProfilingGroup(ctx, &args, opts...) 86 var s LookupProfilingGroupResult 87 if r != nil { 88 s = *r 89 } 90 return s, err 91 }).(LookupProfilingGroupResultOutput) 92 } 93 94 // A collection of arguments for invoking getProfilingGroup. 95 type LookupProfilingGroupOutputArgs struct { 96 // The name of the profiling group. 97 Name pulumi.StringInput `pulumi:"name"` 98 } 99 100 func (LookupProfilingGroupOutputArgs) ElementType() reflect.Type { 101 return reflect.TypeOf((*LookupProfilingGroupArgs)(nil)).Elem() 102 } 103 104 // A collection of values returned by getProfilingGroup. 105 type LookupProfilingGroupResultOutput struct{ *pulumi.OutputState } 106 107 func (LookupProfilingGroupResultOutput) ElementType() reflect.Type { 108 return reflect.TypeOf((*LookupProfilingGroupResult)(nil)).Elem() 109 } 110 111 func (o LookupProfilingGroupResultOutput) ToLookupProfilingGroupResultOutput() LookupProfilingGroupResultOutput { 112 return o 113 } 114 115 func (o LookupProfilingGroupResultOutput) ToLookupProfilingGroupResultOutputWithContext(ctx context.Context) LookupProfilingGroupResultOutput { 116 return o 117 } 118 119 // Profiling Group agent orchestration config 120 func (o LookupProfilingGroupResultOutput) AgentOrchestrationConfigs() GetProfilingGroupAgentOrchestrationConfigArrayOutput { 121 return o.ApplyT(func(v LookupProfilingGroupResult) []GetProfilingGroupAgentOrchestrationConfig { 122 return v.AgentOrchestrationConfigs 123 }).(GetProfilingGroupAgentOrchestrationConfigArrayOutput) 124 } 125 126 // ARN of the Profiling Group. 127 func (o LookupProfilingGroupResultOutput) Arn() pulumi.StringOutput { 128 return o.ApplyT(func(v LookupProfilingGroupResult) string { return v.Arn }).(pulumi.StringOutput) 129 } 130 131 // The compute platform of the profiling group. 132 func (o LookupProfilingGroupResultOutput) ComputePlatform() pulumi.StringOutput { 133 return o.ApplyT(func(v LookupProfilingGroupResult) string { return v.ComputePlatform }).(pulumi.StringOutput) 134 } 135 136 // Timestamp when Profiling Group was created. 137 func (o LookupProfilingGroupResultOutput) CreatedAt() pulumi.StringOutput { 138 return o.ApplyT(func(v LookupProfilingGroupResult) string { return v.CreatedAt }).(pulumi.StringOutput) 139 } 140 141 func (o LookupProfilingGroupResultOutput) Id() pulumi.StringOutput { 142 return o.ApplyT(func(v LookupProfilingGroupResult) string { return v.Id }).(pulumi.StringOutput) 143 } 144 145 func (o LookupProfilingGroupResultOutput) Name() pulumi.StringOutput { 146 return o.ApplyT(func(v LookupProfilingGroupResult) string { return v.Name }).(pulumi.StringOutput) 147 } 148 149 // The status of the Profiling Group. 150 func (o LookupProfilingGroupResultOutput) ProfilingStatuses() GetProfilingGroupProfilingStatusArrayOutput { 151 return o.ApplyT(func(v LookupProfilingGroupResult) []GetProfilingGroupProfilingStatus { return v.ProfilingStatuses }).(GetProfilingGroupProfilingStatusArrayOutput) 152 } 153 154 // Mapping of Key-Value tags for the resource. 155 func (o LookupProfilingGroupResultOutput) Tags() pulumi.StringMapOutput { 156 return o.ApplyT(func(v LookupProfilingGroupResult) map[string]string { return v.Tags }).(pulumi.StringMapOutput) 157 } 158 159 // Timestamp when Profiling Group was updated. 160 func (o LookupProfilingGroupResultOutput) UpdatedAt() pulumi.StringOutput { 161 return o.ApplyT(func(v LookupProfilingGroupResult) string { return v.UpdatedAt }).(pulumi.StringOutput) 162 } 163 164 func init() { 165 pulumi.RegisterOutputType(LookupProfilingGroupResultOutput{}) 166 }