github.com/pulumi/pulumi-kubernetes/sdk/v3@v3.30.2/go/kubernetes/certificates/v1alpha1/clusterTrustBundleList.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 v1alpha1 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 // ClusterTrustBundleList is a collection of ClusterTrustBundle objects 16 type ClusterTrustBundleList 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 // items is a collection of ClusterTrustBundle objects 22 Items ClusterTrustBundleTypeArrayOutput `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 // metadata contains the list metadata. 26 Metadata metav1.ListMetaPtrOutput `pulumi:"metadata"` 27 } 28 29 // NewClusterTrustBundleList registers a new resource with the given unique name, arguments, and options. 30 func NewClusterTrustBundleList(ctx *pulumi.Context, 31 name string, args *ClusterTrustBundleListArgs, opts ...pulumi.ResourceOption) (*ClusterTrustBundleList, 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("certificates.k8s.io/v1alpha1") 40 args.Kind = pulumi.StringPtr("ClusterTrustBundleList") 41 var resource ClusterTrustBundleList 42 err := ctx.RegisterResource("kubernetes:certificates.k8s.io/v1alpha1:ClusterTrustBundleList", name, args, &resource, opts...) 43 if err != nil { 44 return nil, err 45 } 46 return &resource, nil 47 } 48 49 // GetClusterTrustBundleList gets an existing ClusterTrustBundleList 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 GetClusterTrustBundleList(ctx *pulumi.Context, 52 name string, id pulumi.IDInput, state *ClusterTrustBundleListState, opts ...pulumi.ResourceOption) (*ClusterTrustBundleList, error) { 53 var resource ClusterTrustBundleList 54 err := ctx.ReadResource("kubernetes:certificates.k8s.io/v1alpha1:ClusterTrustBundleList", 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 ClusterTrustBundleList resources. 62 type clusterTrustBundleListState struct { 63 } 64 65 type ClusterTrustBundleListState struct { 66 } 67 68 func (ClusterTrustBundleListState) ElementType() reflect.Type { 69 return reflect.TypeOf((*clusterTrustBundleListState)(nil)).Elem() 70 } 71 72 type clusterTrustBundleListArgs 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 // items is a collection of ClusterTrustBundle objects 76 Items []ClusterTrustBundleType `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 // metadata contains the list metadata. 80 Metadata *metav1.ListMeta `pulumi:"metadata"` 81 } 82 83 // The set of arguments for constructing a ClusterTrustBundleList resource. 84 type ClusterTrustBundleListArgs 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 // items is a collection of ClusterTrustBundle objects 88 Items ClusterTrustBundleTypeArrayInput 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 // metadata contains the list metadata. 92 Metadata metav1.ListMetaPtrInput 93 } 94 95 func (ClusterTrustBundleListArgs) ElementType() reflect.Type { 96 return reflect.TypeOf((*clusterTrustBundleListArgs)(nil)).Elem() 97 } 98 99 type ClusterTrustBundleListInput interface { 100 pulumi.Input 101 102 ToClusterTrustBundleListOutput() ClusterTrustBundleListOutput 103 ToClusterTrustBundleListOutputWithContext(ctx context.Context) ClusterTrustBundleListOutput 104 } 105 106 func (*ClusterTrustBundleList) ElementType() reflect.Type { 107 return reflect.TypeOf((**ClusterTrustBundleList)(nil)).Elem() 108 } 109 110 func (i *ClusterTrustBundleList) ToClusterTrustBundleListOutput() ClusterTrustBundleListOutput { 111 return i.ToClusterTrustBundleListOutputWithContext(context.Background()) 112 } 113 114 func (i *ClusterTrustBundleList) ToClusterTrustBundleListOutputWithContext(ctx context.Context) ClusterTrustBundleListOutput { 115 return pulumi.ToOutputWithContext(ctx, i).(ClusterTrustBundleListOutput) 116 } 117 118 // ClusterTrustBundleListArrayInput is an input type that accepts ClusterTrustBundleListArray and ClusterTrustBundleListArrayOutput values. 119 // You can construct a concrete instance of `ClusterTrustBundleListArrayInput` via: 120 // 121 // ClusterTrustBundleListArray{ ClusterTrustBundleListArgs{...} } 122 type ClusterTrustBundleListArrayInput interface { 123 pulumi.Input 124 125 ToClusterTrustBundleListArrayOutput() ClusterTrustBundleListArrayOutput 126 ToClusterTrustBundleListArrayOutputWithContext(context.Context) ClusterTrustBundleListArrayOutput 127 } 128 129 type ClusterTrustBundleListArray []ClusterTrustBundleListInput 130 131 func (ClusterTrustBundleListArray) ElementType() reflect.Type { 132 return reflect.TypeOf((*[]*ClusterTrustBundleList)(nil)).Elem() 133 } 134 135 func (i ClusterTrustBundleListArray) ToClusterTrustBundleListArrayOutput() ClusterTrustBundleListArrayOutput { 136 return i.ToClusterTrustBundleListArrayOutputWithContext(context.Background()) 137 } 138 139 func (i ClusterTrustBundleListArray) ToClusterTrustBundleListArrayOutputWithContext(ctx context.Context) ClusterTrustBundleListArrayOutput { 140 return pulumi.ToOutputWithContext(ctx, i).(ClusterTrustBundleListArrayOutput) 141 } 142 143 // ClusterTrustBundleListMapInput is an input type that accepts ClusterTrustBundleListMap and ClusterTrustBundleListMapOutput values. 144 // You can construct a concrete instance of `ClusterTrustBundleListMapInput` via: 145 // 146 // ClusterTrustBundleListMap{ "key": ClusterTrustBundleListArgs{...} } 147 type ClusterTrustBundleListMapInput interface { 148 pulumi.Input 149 150 ToClusterTrustBundleListMapOutput() ClusterTrustBundleListMapOutput 151 ToClusterTrustBundleListMapOutputWithContext(context.Context) ClusterTrustBundleListMapOutput 152 } 153 154 type ClusterTrustBundleListMap map[string]ClusterTrustBundleListInput 155 156 func (ClusterTrustBundleListMap) ElementType() reflect.Type { 157 return reflect.TypeOf((*map[string]*ClusterTrustBundleList)(nil)).Elem() 158 } 159 160 func (i ClusterTrustBundleListMap) ToClusterTrustBundleListMapOutput() ClusterTrustBundleListMapOutput { 161 return i.ToClusterTrustBundleListMapOutputWithContext(context.Background()) 162 } 163 164 func (i ClusterTrustBundleListMap) ToClusterTrustBundleListMapOutputWithContext(ctx context.Context) ClusterTrustBundleListMapOutput { 165 return pulumi.ToOutputWithContext(ctx, i).(ClusterTrustBundleListMapOutput) 166 } 167 168 type ClusterTrustBundleListOutput struct{ *pulumi.OutputState } 169 170 func (ClusterTrustBundleListOutput) ElementType() reflect.Type { 171 return reflect.TypeOf((**ClusterTrustBundleList)(nil)).Elem() 172 } 173 174 func (o ClusterTrustBundleListOutput) ToClusterTrustBundleListOutput() ClusterTrustBundleListOutput { 175 return o 176 } 177 178 func (o ClusterTrustBundleListOutput) ToClusterTrustBundleListOutputWithContext(ctx context.Context) ClusterTrustBundleListOutput { 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 ClusterTrustBundleListOutput) ApiVersion() pulumi.StringPtrOutput { 184 return o.ApplyT(func(v *ClusterTrustBundleList) pulumi.StringPtrOutput { return v.ApiVersion }).(pulumi.StringPtrOutput) 185 } 186 187 // items is a collection of ClusterTrustBundle objects 188 func (o ClusterTrustBundleListOutput) Items() ClusterTrustBundleTypeArrayOutput { 189 return o.ApplyT(func(v *ClusterTrustBundleList) ClusterTrustBundleTypeArrayOutput { return v.Items }).(ClusterTrustBundleTypeArrayOutput) 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 ClusterTrustBundleListOutput) Kind() pulumi.StringPtrOutput { 194 return o.ApplyT(func(v *ClusterTrustBundleList) pulumi.StringPtrOutput { return v.Kind }).(pulumi.StringPtrOutput) 195 } 196 197 // metadata contains the list metadata. 198 func (o ClusterTrustBundleListOutput) Metadata() metav1.ListMetaPtrOutput { 199 return o.ApplyT(func(v *ClusterTrustBundleList) metav1.ListMetaPtrOutput { return v.Metadata }).(metav1.ListMetaPtrOutput) 200 } 201 202 type ClusterTrustBundleListArrayOutput struct{ *pulumi.OutputState } 203 204 func (ClusterTrustBundleListArrayOutput) ElementType() reflect.Type { 205 return reflect.TypeOf((*[]*ClusterTrustBundleList)(nil)).Elem() 206 } 207 208 func (o ClusterTrustBundleListArrayOutput) ToClusterTrustBundleListArrayOutput() ClusterTrustBundleListArrayOutput { 209 return o 210 } 211 212 func (o ClusterTrustBundleListArrayOutput) ToClusterTrustBundleListArrayOutputWithContext(ctx context.Context) ClusterTrustBundleListArrayOutput { 213 return o 214 } 215 216 func (o ClusterTrustBundleListArrayOutput) Index(i pulumi.IntInput) ClusterTrustBundleListOutput { 217 return pulumi.All(o, i).ApplyT(func(vs []interface{}) *ClusterTrustBundleList { 218 return vs[0].([]*ClusterTrustBundleList)[vs[1].(int)] 219 }).(ClusterTrustBundleListOutput) 220 } 221 222 type ClusterTrustBundleListMapOutput struct{ *pulumi.OutputState } 223 224 func (ClusterTrustBundleListMapOutput) ElementType() reflect.Type { 225 return reflect.TypeOf((*map[string]*ClusterTrustBundleList)(nil)).Elem() 226 } 227 228 func (o ClusterTrustBundleListMapOutput) ToClusterTrustBundleListMapOutput() ClusterTrustBundleListMapOutput { 229 return o 230 } 231 232 func (o ClusterTrustBundleListMapOutput) ToClusterTrustBundleListMapOutputWithContext(ctx context.Context) ClusterTrustBundleListMapOutput { 233 return o 234 } 235 236 func (o ClusterTrustBundleListMapOutput) MapIndex(k pulumi.StringInput) ClusterTrustBundleListOutput { 237 return pulumi.All(o, k).ApplyT(func(vs []interface{}) *ClusterTrustBundleList { 238 return vs[0].(map[string]*ClusterTrustBundleList)[vs[1].(string)] 239 }).(ClusterTrustBundleListOutput) 240 } 241 242 func init() { 243 pulumi.RegisterInputType(reflect.TypeOf((*ClusterTrustBundleListInput)(nil)).Elem(), &ClusterTrustBundleList{}) 244 pulumi.RegisterInputType(reflect.TypeOf((*ClusterTrustBundleListArrayInput)(nil)).Elem(), ClusterTrustBundleListArray{}) 245 pulumi.RegisterInputType(reflect.TypeOf((*ClusterTrustBundleListMapInput)(nil)).Elem(), ClusterTrustBundleListMap{}) 246 pulumi.RegisterOutputType(ClusterTrustBundleListOutput{}) 247 pulumi.RegisterOutputType(ClusterTrustBundleListArrayOutput{}) 248 pulumi.RegisterOutputType(ClusterTrustBundleListMapOutput{}) 249 }