github.com/pulumi/pulumi-aws/sdk/v6@v6.32.0/go/aws/appintegrations/getEventIntegration.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 appintegrations 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 // Use this data source to get information on an existing AppIntegrations Event Integration. 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/appintegrations" 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 := appintegrations.GetEventIntegration(ctx, &appintegrations.GetEventIntegrationArgs{ 32 // Name: "example", 33 // }, nil) 34 // if err != nil { 35 // return err 36 // } 37 // return nil 38 // }) 39 // } 40 // 41 // ``` 42 // <!--End PulumiCodeChooser --> 43 func GetEventIntegration(ctx *pulumi.Context, args *GetEventIntegrationArgs, opts ...pulumi.InvokeOption) (*GetEventIntegrationResult, error) { 44 opts = internal.PkgInvokeDefaultOpts(opts) 45 var rv GetEventIntegrationResult 46 err := ctx.Invoke("aws:appintegrations/getEventIntegration:getEventIntegration", 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 getEventIntegration. 54 type GetEventIntegrationArgs struct { 55 // The AppIntegrations Event Integration name. 56 Name string `pulumi:"name"` 57 // Metadata that you can assign to help organize the report plans you create. 58 Tags map[string]string `pulumi:"tags"` 59 } 60 61 // A collection of values returned by getEventIntegration. 62 type GetEventIntegrationResult struct { 63 // The ARN of the AppIntegrations Event Integration. 64 Arn string `pulumi:"arn"` 65 // The description of the Event Integration. 66 Description string `pulumi:"description"` 67 // A block that defines the configuration information for the event filter. The Event Filter block is documented below. 68 EventFilters []GetEventIntegrationEventFilter `pulumi:"eventFilters"` 69 // The EventBridge bus. 70 EventbridgeBus string `pulumi:"eventbridgeBus"` 71 // The provider-assigned unique ID for this managed resource. 72 Id string `pulumi:"id"` 73 Name string `pulumi:"name"` 74 // Metadata that you can assign to help organize the report plans you create. 75 Tags map[string]string `pulumi:"tags"` 76 } 77 78 func GetEventIntegrationOutput(ctx *pulumi.Context, args GetEventIntegrationOutputArgs, opts ...pulumi.InvokeOption) GetEventIntegrationResultOutput { 79 return pulumi.ToOutputWithContext(context.Background(), args). 80 ApplyT(func(v interface{}) (GetEventIntegrationResult, error) { 81 args := v.(GetEventIntegrationArgs) 82 r, err := GetEventIntegration(ctx, &args, opts...) 83 var s GetEventIntegrationResult 84 if r != nil { 85 s = *r 86 } 87 return s, err 88 }).(GetEventIntegrationResultOutput) 89 } 90 91 // A collection of arguments for invoking getEventIntegration. 92 type GetEventIntegrationOutputArgs struct { 93 // The AppIntegrations Event Integration name. 94 Name pulumi.StringInput `pulumi:"name"` 95 // Metadata that you can assign to help organize the report plans you create. 96 Tags pulumi.StringMapInput `pulumi:"tags"` 97 } 98 99 func (GetEventIntegrationOutputArgs) ElementType() reflect.Type { 100 return reflect.TypeOf((*GetEventIntegrationArgs)(nil)).Elem() 101 } 102 103 // A collection of values returned by getEventIntegration. 104 type GetEventIntegrationResultOutput struct{ *pulumi.OutputState } 105 106 func (GetEventIntegrationResultOutput) ElementType() reflect.Type { 107 return reflect.TypeOf((*GetEventIntegrationResult)(nil)).Elem() 108 } 109 110 func (o GetEventIntegrationResultOutput) ToGetEventIntegrationResultOutput() GetEventIntegrationResultOutput { 111 return o 112 } 113 114 func (o GetEventIntegrationResultOutput) ToGetEventIntegrationResultOutputWithContext(ctx context.Context) GetEventIntegrationResultOutput { 115 return o 116 } 117 118 // The ARN of the AppIntegrations Event Integration. 119 func (o GetEventIntegrationResultOutput) Arn() pulumi.StringOutput { 120 return o.ApplyT(func(v GetEventIntegrationResult) string { return v.Arn }).(pulumi.StringOutput) 121 } 122 123 // The description of the Event Integration. 124 func (o GetEventIntegrationResultOutput) Description() pulumi.StringOutput { 125 return o.ApplyT(func(v GetEventIntegrationResult) string { return v.Description }).(pulumi.StringOutput) 126 } 127 128 // A block that defines the configuration information for the event filter. The Event Filter block is documented below. 129 func (o GetEventIntegrationResultOutput) EventFilters() GetEventIntegrationEventFilterArrayOutput { 130 return o.ApplyT(func(v GetEventIntegrationResult) []GetEventIntegrationEventFilter { return v.EventFilters }).(GetEventIntegrationEventFilterArrayOutput) 131 } 132 133 // The EventBridge bus. 134 func (o GetEventIntegrationResultOutput) EventbridgeBus() pulumi.StringOutput { 135 return o.ApplyT(func(v GetEventIntegrationResult) string { return v.EventbridgeBus }).(pulumi.StringOutput) 136 } 137 138 // The provider-assigned unique ID for this managed resource. 139 func (o GetEventIntegrationResultOutput) Id() pulumi.StringOutput { 140 return o.ApplyT(func(v GetEventIntegrationResult) string { return v.Id }).(pulumi.StringOutput) 141 } 142 143 func (o GetEventIntegrationResultOutput) Name() pulumi.StringOutput { 144 return o.ApplyT(func(v GetEventIntegrationResult) string { return v.Name }).(pulumi.StringOutput) 145 } 146 147 // Metadata that you can assign to help organize the report plans you create. 148 func (o GetEventIntegrationResultOutput) Tags() pulumi.StringMapOutput { 149 return o.ApplyT(func(v GetEventIntegrationResult) map[string]string { return v.Tags }).(pulumi.StringMapOutput) 150 } 151 152 func init() { 153 pulumi.RegisterOutputType(GetEventIntegrationResultOutput{}) 154 }