/
getLoggingConfiguration.go
114 lines (94 loc) · 4.98 KB
/
getLoggingConfiguration.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
113
114
// 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 ivschat
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"
)
// Resource type definition for AWS::IVSChat::LoggingConfiguration.
func LookupLoggingConfiguration(ctx *pulumi.Context, args *LookupLoggingConfigurationArgs, opts ...pulumi.InvokeOption) (*LookupLoggingConfigurationResult, error) {
opts = internal.PkgInvokeDefaultOpts(opts)
var rv LookupLoggingConfigurationResult
err := ctx.Invoke("aws-native:ivschat:getLoggingConfiguration", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
type LookupLoggingConfigurationArgs struct {
// LoggingConfiguration ARN is automatically generated on creation and assigned as the unique identifier.
Arn string `pulumi:"arn"`
}
type LookupLoggingConfigurationResult struct {
// LoggingConfiguration ARN is automatically generated on creation and assigned as the unique identifier.
Arn *string `pulumi:"arn"`
DestinationConfiguration *LoggingConfigurationDestinationConfiguration `pulumi:"destinationConfiguration"`
// The system-generated ID of the logging configuration.
Id *string `pulumi:"id"`
// The name of the logging configuration. The value does not need to be unique.
Name *string `pulumi:"name"`
// The state of the logging configuration. When the state is ACTIVE, the configuration is ready to log chat content.
State *LoggingConfigurationStateEnum `pulumi:"state"`
// An array of key-value pairs to apply to this resource.
Tags []aws.Tag `pulumi:"tags"`
}
func LookupLoggingConfigurationOutput(ctx *pulumi.Context, args LookupLoggingConfigurationOutputArgs, opts ...pulumi.InvokeOption) LookupLoggingConfigurationResultOutput {
return pulumi.ToOutputWithContext(context.Background(), args).
ApplyT(func(v interface{}) (LookupLoggingConfigurationResult, error) {
args := v.(LookupLoggingConfigurationArgs)
r, err := LookupLoggingConfiguration(ctx, &args, opts...)
var s LookupLoggingConfigurationResult
if r != nil {
s = *r
}
return s, err
}).(LookupLoggingConfigurationResultOutput)
}
type LookupLoggingConfigurationOutputArgs struct {
// LoggingConfiguration ARN is automatically generated on creation and assigned as the unique identifier.
Arn pulumi.StringInput `pulumi:"arn"`
}
func (LookupLoggingConfigurationOutputArgs) ElementType() reflect.Type {
return reflect.TypeOf((*LookupLoggingConfigurationArgs)(nil)).Elem()
}
type LookupLoggingConfigurationResultOutput struct{ *pulumi.OutputState }
func (LookupLoggingConfigurationResultOutput) ElementType() reflect.Type {
return reflect.TypeOf((*LookupLoggingConfigurationResult)(nil)).Elem()
}
func (o LookupLoggingConfigurationResultOutput) ToLookupLoggingConfigurationResultOutput() LookupLoggingConfigurationResultOutput {
return o
}
func (o LookupLoggingConfigurationResultOutput) ToLookupLoggingConfigurationResultOutputWithContext(ctx context.Context) LookupLoggingConfigurationResultOutput {
return o
}
// LoggingConfiguration ARN is automatically generated on creation and assigned as the unique identifier.
func (o LookupLoggingConfigurationResultOutput) Arn() pulumi.StringPtrOutput {
return o.ApplyT(func(v LookupLoggingConfigurationResult) *string { return v.Arn }).(pulumi.StringPtrOutput)
}
func (o LookupLoggingConfigurationResultOutput) DestinationConfiguration() LoggingConfigurationDestinationConfigurationPtrOutput {
return o.ApplyT(func(v LookupLoggingConfigurationResult) *LoggingConfigurationDestinationConfiguration {
return v.DestinationConfiguration
}).(LoggingConfigurationDestinationConfigurationPtrOutput)
}
// The system-generated ID of the logging configuration.
func (o LookupLoggingConfigurationResultOutput) Id() pulumi.StringPtrOutput {
return o.ApplyT(func(v LookupLoggingConfigurationResult) *string { return v.Id }).(pulumi.StringPtrOutput)
}
// The name of the logging configuration. The value does not need to be unique.
func (o LookupLoggingConfigurationResultOutput) Name() pulumi.StringPtrOutput {
return o.ApplyT(func(v LookupLoggingConfigurationResult) *string { return v.Name }).(pulumi.StringPtrOutput)
}
// The state of the logging configuration. When the state is ACTIVE, the configuration is ready to log chat content.
func (o LookupLoggingConfigurationResultOutput) State() LoggingConfigurationStateEnumPtrOutput {
return o.ApplyT(func(v LookupLoggingConfigurationResult) *LoggingConfigurationStateEnum { return v.State }).(LoggingConfigurationStateEnumPtrOutput)
}
// An array of key-value pairs to apply to this resource.
func (o LookupLoggingConfigurationResultOutput) Tags() aws.TagArrayOutput {
return o.ApplyT(func(v LookupLoggingConfigurationResult) []aws.Tag { return v.Tags }).(aws.TagArrayOutput)
}
func init() {
pulumi.RegisterOutputType(LookupLoggingConfigurationResultOutput{})
}