generated from pulumi/pulumi-tf-provider-boilerplate
/
getMediaWorkflowConfigurations.go
162 lines (142 loc) · 7.08 KB
/
getMediaWorkflowConfigurations.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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT.
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
package mediaservices
import (
"context"
"reflect"
"github.com/pulumi/pulumi-oci/sdk/go/oci/internal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// This data source provides the list of Media Workflow Configurations in Oracle Cloud Infrastructure Media Services service.
//
// Returns a list of MediaWorkflowConfigurations.
//
// ## Example Usage
//
// ```go
// package main
//
// import (
//
// "github.com/pulumi/pulumi-oci/sdk/go/oci/MediaServices"
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
//
// )
//
// func main() {
// pulumi.Run(func(ctx *pulumi.Context) error {
// _, err := MediaServices.GetMediaWorkflowConfigurations(ctx, &mediaservices.GetMediaWorkflowConfigurationsArgs{
// CompartmentId: pulumi.StringRef(compartmentId),
// DisplayName: pulumi.StringRef(mediaWorkflowConfigurationDisplayName),
// Id: pulumi.StringRef(mediaWorkflowConfigurationId),
// State: pulumi.StringRef(mediaWorkflowConfigurationState),
// }, nil)
// if err != nil {
// return err
// }
// return nil
// })
// }
//
// ```
func GetMediaWorkflowConfigurations(ctx *pulumi.Context, args *GetMediaWorkflowConfigurationsArgs, opts ...pulumi.InvokeOption) (*GetMediaWorkflowConfigurationsResult, error) {
opts = internal.PkgInvokeDefaultOpts(opts)
var rv GetMediaWorkflowConfigurationsResult
err := ctx.Invoke("oci:MediaServices/getMediaWorkflowConfigurations:getMediaWorkflowConfigurations", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
// A collection of arguments for invoking getMediaWorkflowConfigurations.
type GetMediaWorkflowConfigurationsArgs struct {
// The ID of the compartment in which to list resources.
CompartmentId *string `pulumi:"compartmentId"`
// A filter to return only the resources that match the entire display name given.
DisplayName *string `pulumi:"displayName"`
Filters []GetMediaWorkflowConfigurationsFilter `pulumi:"filters"`
// Unique MediaWorkflowConfiguration identifier.
Id *string `pulumi:"id"`
// A filter to return only the resources with lifecycleState matching the given lifecycleState.
State *string `pulumi:"state"`
}
// A collection of values returned by getMediaWorkflowConfigurations.
type GetMediaWorkflowConfigurationsResult struct {
// The compartment ID of the lock.
CompartmentId *string `pulumi:"compartmentId"`
// Display name for the MediaWorkflowConfiguration. Avoid entering confidential information.
DisplayName *string `pulumi:"displayName"`
Filters []GetMediaWorkflowConfigurationsFilter `pulumi:"filters"`
// Unique identifier that is immutable on creation.
Id *string `pulumi:"id"`
// The list of media_workflow_configuration_collection.
MediaWorkflowConfigurationCollections []GetMediaWorkflowConfigurationsMediaWorkflowConfigurationCollection `pulumi:"mediaWorkflowConfigurationCollections"`
// The current state of the MediaWorkflowConfiguration.
State *string `pulumi:"state"`
}
func GetMediaWorkflowConfigurationsOutput(ctx *pulumi.Context, args GetMediaWorkflowConfigurationsOutputArgs, opts ...pulumi.InvokeOption) GetMediaWorkflowConfigurationsResultOutput {
return pulumi.ToOutputWithContext(context.Background(), args).
ApplyT(func(v interface{}) (GetMediaWorkflowConfigurationsResult, error) {
args := v.(GetMediaWorkflowConfigurationsArgs)
r, err := GetMediaWorkflowConfigurations(ctx, &args, opts...)
var s GetMediaWorkflowConfigurationsResult
if r != nil {
s = *r
}
return s, err
}).(GetMediaWorkflowConfigurationsResultOutput)
}
// A collection of arguments for invoking getMediaWorkflowConfigurations.
type GetMediaWorkflowConfigurationsOutputArgs struct {
// The ID of the compartment in which to list resources.
CompartmentId pulumi.StringPtrInput `pulumi:"compartmentId"`
// A filter to return only the resources that match the entire display name given.
DisplayName pulumi.StringPtrInput `pulumi:"displayName"`
Filters GetMediaWorkflowConfigurationsFilterArrayInput `pulumi:"filters"`
// Unique MediaWorkflowConfiguration identifier.
Id pulumi.StringPtrInput `pulumi:"id"`
// A filter to return only the resources with lifecycleState matching the given lifecycleState.
State pulumi.StringPtrInput `pulumi:"state"`
}
func (GetMediaWorkflowConfigurationsOutputArgs) ElementType() reflect.Type {
return reflect.TypeOf((*GetMediaWorkflowConfigurationsArgs)(nil)).Elem()
}
// A collection of values returned by getMediaWorkflowConfigurations.
type GetMediaWorkflowConfigurationsResultOutput struct{ *pulumi.OutputState }
func (GetMediaWorkflowConfigurationsResultOutput) ElementType() reflect.Type {
return reflect.TypeOf((*GetMediaWorkflowConfigurationsResult)(nil)).Elem()
}
func (o GetMediaWorkflowConfigurationsResultOutput) ToGetMediaWorkflowConfigurationsResultOutput() GetMediaWorkflowConfigurationsResultOutput {
return o
}
func (o GetMediaWorkflowConfigurationsResultOutput) ToGetMediaWorkflowConfigurationsResultOutputWithContext(ctx context.Context) GetMediaWorkflowConfigurationsResultOutput {
return o
}
// The compartment ID of the lock.
func (o GetMediaWorkflowConfigurationsResultOutput) CompartmentId() pulumi.StringPtrOutput {
return o.ApplyT(func(v GetMediaWorkflowConfigurationsResult) *string { return v.CompartmentId }).(pulumi.StringPtrOutput)
}
// Display name for the MediaWorkflowConfiguration. Avoid entering confidential information.
func (o GetMediaWorkflowConfigurationsResultOutput) DisplayName() pulumi.StringPtrOutput {
return o.ApplyT(func(v GetMediaWorkflowConfigurationsResult) *string { return v.DisplayName }).(pulumi.StringPtrOutput)
}
func (o GetMediaWorkflowConfigurationsResultOutput) Filters() GetMediaWorkflowConfigurationsFilterArrayOutput {
return o.ApplyT(func(v GetMediaWorkflowConfigurationsResult) []GetMediaWorkflowConfigurationsFilter { return v.Filters }).(GetMediaWorkflowConfigurationsFilterArrayOutput)
}
// Unique identifier that is immutable on creation.
func (o GetMediaWorkflowConfigurationsResultOutput) Id() pulumi.StringPtrOutput {
return o.ApplyT(func(v GetMediaWorkflowConfigurationsResult) *string { return v.Id }).(pulumi.StringPtrOutput)
}
// The list of media_workflow_configuration_collection.
func (o GetMediaWorkflowConfigurationsResultOutput) MediaWorkflowConfigurationCollections() GetMediaWorkflowConfigurationsMediaWorkflowConfigurationCollectionArrayOutput {
return o.ApplyT(func(v GetMediaWorkflowConfigurationsResult) []GetMediaWorkflowConfigurationsMediaWorkflowConfigurationCollection {
return v.MediaWorkflowConfigurationCollections
}).(GetMediaWorkflowConfigurationsMediaWorkflowConfigurationCollectionArrayOutput)
}
// The current state of the MediaWorkflowConfiguration.
func (o GetMediaWorkflowConfigurationsResultOutput) State() pulumi.StringPtrOutput {
return o.ApplyT(func(v GetMediaWorkflowConfigurationsResult) *string { return v.State }).(pulumi.StringPtrOutput)
}
func init() {
pulumi.RegisterOutputType(GetMediaWorkflowConfigurationsResultOutput{})
}