github.com/pulumi/pulumi-kubernetes/sdk/v3@v3.30.2/go/kubernetes/admissionregistration/v1/mutatingWebhookConfigurationList.go (about) 1 // Code generated by pulumigen DO NOT EDIT. 2 // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** 3 4 package v1 5 6 import ( 7 "context" 8 "reflect" 9 10 "errors" 11 metav1 "github.com/pulumi/pulumi-kubernetes/sdk/v3/go/kubernetes/meta/v1" 12 "github.com/pulumi/pulumi/sdk/v3/go/pulumi" 13 ) 14 15 // MutatingWebhookConfigurationList is a list of MutatingWebhookConfiguration. 16 type MutatingWebhookConfigurationList struct { 17 pulumi.CustomResourceState 18 19 // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources 20 ApiVersion pulumi.StringPtrOutput `pulumi:"apiVersion"` 21 // List of MutatingWebhookConfiguration. 22 Items MutatingWebhookConfigurationTypeArrayOutput `pulumi:"items"` 23 // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds 24 Kind pulumi.StringPtrOutput `pulumi:"kind"` 25 // Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds 26 Metadata metav1.ListMetaPtrOutput `pulumi:"metadata"` 27 } 28 29 // NewMutatingWebhookConfigurationList registers a new resource with the given unique name, arguments, and options. 30 func NewMutatingWebhookConfigurationList(ctx *pulumi.Context, 31 name string, args *MutatingWebhookConfigurationListArgs, opts ...pulumi.ResourceOption) (*MutatingWebhookConfigurationList, error) { 32 if args == nil { 33 return nil, errors.New("missing one or more required arguments") 34 } 35 36 if args.Items == nil { 37 return nil, errors.New("invalid value for required argument 'Items'") 38 } 39 args.ApiVersion = pulumi.StringPtr("admissionregistration.k8s.io/v1") 40 args.Kind = pulumi.StringPtr("MutatingWebhookConfigurationList") 41 var resource MutatingWebhookConfigurationList 42 err := ctx.RegisterResource("kubernetes:admissionregistration.k8s.io/v1:MutatingWebhookConfigurationList", name, args, &resource, opts...) 43 if err != nil { 44 return nil, err 45 } 46 return &resource, nil 47 } 48 49 // GetMutatingWebhookConfigurationList gets an existing MutatingWebhookConfigurationList resource's state with the given name, ID, and optional 50 // state properties that are used to uniquely qualify the lookup (nil if not required). 51 func GetMutatingWebhookConfigurationList(ctx *pulumi.Context, 52 name string, id pulumi.IDInput, state *MutatingWebhookConfigurationListState, opts ...pulumi.ResourceOption) (*MutatingWebhookConfigurationList, error) { 53 var resource MutatingWebhookConfigurationList 54 err := ctx.ReadResource("kubernetes:admissionregistration.k8s.io/v1:MutatingWebhookConfigurationList", name, id, state, &resource, opts...) 55 if err != nil { 56 return nil, err 57 } 58 return &resource, nil 59 } 60 61 // Input properties used for looking up and filtering MutatingWebhookConfigurationList resources. 62 type mutatingWebhookConfigurationListState struct { 63 } 64 65 type MutatingWebhookConfigurationListState struct { 66 } 67 68 func (MutatingWebhookConfigurationListState) ElementType() reflect.Type { 69 return reflect.TypeOf((*mutatingWebhookConfigurationListState)(nil)).Elem() 70 } 71 72 type mutatingWebhookConfigurationListArgs struct { 73 // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources 74 ApiVersion *string `pulumi:"apiVersion"` 75 // List of MutatingWebhookConfiguration. 76 Items []MutatingWebhookConfigurationType `pulumi:"items"` 77 // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds 78 Kind *string `pulumi:"kind"` 79 // Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds 80 Metadata *metav1.ListMeta `pulumi:"metadata"` 81 } 82 83 // The set of arguments for constructing a MutatingWebhookConfigurationList resource. 84 type MutatingWebhookConfigurationListArgs struct { 85 // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources 86 ApiVersion pulumi.StringPtrInput 87 // List of MutatingWebhookConfiguration. 88 Items MutatingWebhookConfigurationTypeArrayInput 89 // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds 90 Kind pulumi.StringPtrInput 91 // Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds 92 Metadata metav1.ListMetaPtrInput 93 } 94 95 func (MutatingWebhookConfigurationListArgs) ElementType() reflect.Type { 96 return reflect.TypeOf((*mutatingWebhookConfigurationListArgs)(nil)).Elem() 97 } 98 99 type MutatingWebhookConfigurationListInput interface { 100 pulumi.Input 101 102 ToMutatingWebhookConfigurationListOutput() MutatingWebhookConfigurationListOutput 103 ToMutatingWebhookConfigurationListOutputWithContext(ctx context.Context) MutatingWebhookConfigurationListOutput 104 } 105 106 func (*MutatingWebhookConfigurationList) ElementType() reflect.Type { 107 return reflect.TypeOf((**MutatingWebhookConfigurationList)(nil)).Elem() 108 } 109 110 func (i *MutatingWebhookConfigurationList) ToMutatingWebhookConfigurationListOutput() MutatingWebhookConfigurationListOutput { 111 return i.ToMutatingWebhookConfigurationListOutputWithContext(context.Background()) 112 } 113 114 func (i *MutatingWebhookConfigurationList) ToMutatingWebhookConfigurationListOutputWithContext(ctx context.Context) MutatingWebhookConfigurationListOutput { 115 return pulumi.ToOutputWithContext(ctx, i).(MutatingWebhookConfigurationListOutput) 116 } 117 118 // MutatingWebhookConfigurationListArrayInput is an input type that accepts MutatingWebhookConfigurationListArray and MutatingWebhookConfigurationListArrayOutput values. 119 // You can construct a concrete instance of `MutatingWebhookConfigurationListArrayInput` via: 120 // 121 // MutatingWebhookConfigurationListArray{ MutatingWebhookConfigurationListArgs{...} } 122 type MutatingWebhookConfigurationListArrayInput interface { 123 pulumi.Input 124 125 ToMutatingWebhookConfigurationListArrayOutput() MutatingWebhookConfigurationListArrayOutput 126 ToMutatingWebhookConfigurationListArrayOutputWithContext(context.Context) MutatingWebhookConfigurationListArrayOutput 127 } 128 129 type MutatingWebhookConfigurationListArray []MutatingWebhookConfigurationListInput 130 131 func (MutatingWebhookConfigurationListArray) ElementType() reflect.Type { 132 return reflect.TypeOf((*[]*MutatingWebhookConfigurationList)(nil)).Elem() 133 } 134 135 func (i MutatingWebhookConfigurationListArray) ToMutatingWebhookConfigurationListArrayOutput() MutatingWebhookConfigurationListArrayOutput { 136 return i.ToMutatingWebhookConfigurationListArrayOutputWithContext(context.Background()) 137 } 138 139 func (i MutatingWebhookConfigurationListArray) ToMutatingWebhookConfigurationListArrayOutputWithContext(ctx context.Context) MutatingWebhookConfigurationListArrayOutput { 140 return pulumi.ToOutputWithContext(ctx, i).(MutatingWebhookConfigurationListArrayOutput) 141 } 142 143 // MutatingWebhookConfigurationListMapInput is an input type that accepts MutatingWebhookConfigurationListMap and MutatingWebhookConfigurationListMapOutput values. 144 // You can construct a concrete instance of `MutatingWebhookConfigurationListMapInput` via: 145 // 146 // MutatingWebhookConfigurationListMap{ "key": MutatingWebhookConfigurationListArgs{...} } 147 type MutatingWebhookConfigurationListMapInput interface { 148 pulumi.Input 149 150 ToMutatingWebhookConfigurationListMapOutput() MutatingWebhookConfigurationListMapOutput 151 ToMutatingWebhookConfigurationListMapOutputWithContext(context.Context) MutatingWebhookConfigurationListMapOutput 152 } 153 154 type MutatingWebhookConfigurationListMap map[string]MutatingWebhookConfigurationListInput 155 156 func (MutatingWebhookConfigurationListMap) ElementType() reflect.Type { 157 return reflect.TypeOf((*map[string]*MutatingWebhookConfigurationList)(nil)).Elem() 158 } 159 160 func (i MutatingWebhookConfigurationListMap) ToMutatingWebhookConfigurationListMapOutput() MutatingWebhookConfigurationListMapOutput { 161 return i.ToMutatingWebhookConfigurationListMapOutputWithContext(context.Background()) 162 } 163 164 func (i MutatingWebhookConfigurationListMap) ToMutatingWebhookConfigurationListMapOutputWithContext(ctx context.Context) MutatingWebhookConfigurationListMapOutput { 165 return pulumi.ToOutputWithContext(ctx, i).(MutatingWebhookConfigurationListMapOutput) 166 } 167 168 type MutatingWebhookConfigurationListOutput struct{ *pulumi.OutputState } 169 170 func (MutatingWebhookConfigurationListOutput) ElementType() reflect.Type { 171 return reflect.TypeOf((**MutatingWebhookConfigurationList)(nil)).Elem() 172 } 173 174 func (o MutatingWebhookConfigurationListOutput) ToMutatingWebhookConfigurationListOutput() MutatingWebhookConfigurationListOutput { 175 return o 176 } 177 178 func (o MutatingWebhookConfigurationListOutput) ToMutatingWebhookConfigurationListOutputWithContext(ctx context.Context) MutatingWebhookConfigurationListOutput { 179 return o 180 } 181 182 // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources 183 func (o MutatingWebhookConfigurationListOutput) ApiVersion() pulumi.StringPtrOutput { 184 return o.ApplyT(func(v *MutatingWebhookConfigurationList) pulumi.StringPtrOutput { return v.ApiVersion }).(pulumi.StringPtrOutput) 185 } 186 187 // List of MutatingWebhookConfiguration. 188 func (o MutatingWebhookConfigurationListOutput) Items() MutatingWebhookConfigurationTypeArrayOutput { 189 return o.ApplyT(func(v *MutatingWebhookConfigurationList) MutatingWebhookConfigurationTypeArrayOutput { return v.Items }).(MutatingWebhookConfigurationTypeArrayOutput) 190 } 191 192 // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds 193 func (o MutatingWebhookConfigurationListOutput) Kind() pulumi.StringPtrOutput { 194 return o.ApplyT(func(v *MutatingWebhookConfigurationList) pulumi.StringPtrOutput { return v.Kind }).(pulumi.StringPtrOutput) 195 } 196 197 // Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds 198 func (o MutatingWebhookConfigurationListOutput) Metadata() metav1.ListMetaPtrOutput { 199 return o.ApplyT(func(v *MutatingWebhookConfigurationList) metav1.ListMetaPtrOutput { return v.Metadata }).(metav1.ListMetaPtrOutput) 200 } 201 202 type MutatingWebhookConfigurationListArrayOutput struct{ *pulumi.OutputState } 203 204 func (MutatingWebhookConfigurationListArrayOutput) ElementType() reflect.Type { 205 return reflect.TypeOf((*[]*MutatingWebhookConfigurationList)(nil)).Elem() 206 } 207 208 func (o MutatingWebhookConfigurationListArrayOutput) ToMutatingWebhookConfigurationListArrayOutput() MutatingWebhookConfigurationListArrayOutput { 209 return o 210 } 211 212 func (o MutatingWebhookConfigurationListArrayOutput) ToMutatingWebhookConfigurationListArrayOutputWithContext(ctx context.Context) MutatingWebhookConfigurationListArrayOutput { 213 return o 214 } 215 216 func (o MutatingWebhookConfigurationListArrayOutput) Index(i pulumi.IntInput) MutatingWebhookConfigurationListOutput { 217 return pulumi.All(o, i).ApplyT(func(vs []interface{}) *MutatingWebhookConfigurationList { 218 return vs[0].([]*MutatingWebhookConfigurationList)[vs[1].(int)] 219 }).(MutatingWebhookConfigurationListOutput) 220 } 221 222 type MutatingWebhookConfigurationListMapOutput struct{ *pulumi.OutputState } 223 224 func (MutatingWebhookConfigurationListMapOutput) ElementType() reflect.Type { 225 return reflect.TypeOf((*map[string]*MutatingWebhookConfigurationList)(nil)).Elem() 226 } 227 228 func (o MutatingWebhookConfigurationListMapOutput) ToMutatingWebhookConfigurationListMapOutput() MutatingWebhookConfigurationListMapOutput { 229 return o 230 } 231 232 func (o MutatingWebhookConfigurationListMapOutput) ToMutatingWebhookConfigurationListMapOutputWithContext(ctx context.Context) MutatingWebhookConfigurationListMapOutput { 233 return o 234 } 235 236 func (o MutatingWebhookConfigurationListMapOutput) MapIndex(k pulumi.StringInput) MutatingWebhookConfigurationListOutput { 237 return pulumi.All(o, k).ApplyT(func(vs []interface{}) *MutatingWebhookConfigurationList { 238 return vs[0].(map[string]*MutatingWebhookConfigurationList)[vs[1].(string)] 239 }).(MutatingWebhookConfigurationListOutput) 240 } 241 242 func init() { 243 pulumi.RegisterInputType(reflect.TypeOf((*MutatingWebhookConfigurationListInput)(nil)).Elem(), &MutatingWebhookConfigurationList{}) 244 pulumi.RegisterInputType(reflect.TypeOf((*MutatingWebhookConfigurationListArrayInput)(nil)).Elem(), MutatingWebhookConfigurationListArray{}) 245 pulumi.RegisterInputType(reflect.TypeOf((*MutatingWebhookConfigurationListMapInput)(nil)).Elem(), MutatingWebhookConfigurationListMap{}) 246 pulumi.RegisterOutputType(MutatingWebhookConfigurationListOutput{}) 247 pulumi.RegisterOutputType(MutatingWebhookConfigurationListArrayOutput{}) 248 pulumi.RegisterOutputType(MutatingWebhookConfigurationListMapOutput{}) 249 }