Documentation
¶
Index ¶
- func NetworkPolicy_IsConstruct(x interface{}) *bool
- func NetworkPolicy_TfResourceType() *string
- func NewNetworkPolicyMetadataOutputReference_Override(n NetworkPolicyMetadataOutputReference, ...)
- func NewNetworkPolicySpecEgressList_Override(n NetworkPolicySpecEgressList, terraformResource cdktf.IInterpolatingParent, ...)
- func NewNetworkPolicySpecEgressOutputReference_Override(n NetworkPolicySpecEgressOutputReference, ...)
- func NewNetworkPolicySpecEgressPortsList_Override(n NetworkPolicySpecEgressPortsList, ...)
- func NewNetworkPolicySpecEgressPortsOutputReference_Override(n NetworkPolicySpecEgressPortsOutputReference, ...)
- func NewNetworkPolicySpecEgressToIpBlockOutputReference_Override(n NetworkPolicySpecEgressToIpBlockOutputReference, ...)
- func NewNetworkPolicySpecEgressToList_Override(n NetworkPolicySpecEgressToList, terraformResource cdktf.IInterpolatingParent, ...)
- func NewNetworkPolicySpecEgressToNamespaceSelectorMatchExpressionsList_Override(n NetworkPolicySpecEgressToNamespaceSelectorMatchExpressionsList, ...)
- func NewNetworkPolicySpecEgressToNamespaceSelectorMatchExpressionsOutputReference_Override(n NetworkPolicySpecEgressToNamespaceSelectorMatchExpressionsOutputReference, ...)
- func NewNetworkPolicySpecEgressToNamespaceSelectorOutputReference_Override(n NetworkPolicySpecEgressToNamespaceSelectorOutputReference, ...)
- func NewNetworkPolicySpecEgressToOutputReference_Override(n NetworkPolicySpecEgressToOutputReference, ...)
- func NewNetworkPolicySpecEgressToPodSelectorMatchExpressionsList_Override(n NetworkPolicySpecEgressToPodSelectorMatchExpressionsList, ...)
- func NewNetworkPolicySpecEgressToPodSelectorMatchExpressionsOutputReference_Override(n NetworkPolicySpecEgressToPodSelectorMatchExpressionsOutputReference, ...)
- func NewNetworkPolicySpecEgressToPodSelectorOutputReference_Override(n NetworkPolicySpecEgressToPodSelectorOutputReference, ...)
- func NewNetworkPolicySpecIngressFromIpBlockOutputReference_Override(n NetworkPolicySpecIngressFromIpBlockOutputReference, ...)
- func NewNetworkPolicySpecIngressFromList_Override(n NetworkPolicySpecIngressFromList, ...)
- func NewNetworkPolicySpecIngressFromNamespaceSelectorMatchExpressionsList_Override(n NetworkPolicySpecIngressFromNamespaceSelectorMatchExpressionsList, ...)
- func NewNetworkPolicySpecIngressFromNamespaceSelectorMatchExpressionsOutputReference_Override(n NetworkPolicySpecIngressFromNamespaceSelectorMatchExpressionsOutputReference, ...)
- func NewNetworkPolicySpecIngressFromNamespaceSelectorOutputReference_Override(n NetworkPolicySpecIngressFromNamespaceSelectorOutputReference, ...)
- func NewNetworkPolicySpecIngressFromOutputReference_Override(n NetworkPolicySpecIngressFromOutputReference, ...)
- func NewNetworkPolicySpecIngressFromPodSelectorMatchExpressionsList_Override(n NetworkPolicySpecIngressFromPodSelectorMatchExpressionsList, ...)
- func NewNetworkPolicySpecIngressFromPodSelectorMatchExpressionsOutputReference_Override(n NetworkPolicySpecIngressFromPodSelectorMatchExpressionsOutputReference, ...)
- func NewNetworkPolicySpecIngressFromPodSelectorOutputReference_Override(n NetworkPolicySpecIngressFromPodSelectorOutputReference, ...)
- func NewNetworkPolicySpecIngressList_Override(n NetworkPolicySpecIngressList, terraformResource cdktf.IInterpolatingParent, ...)
- func NewNetworkPolicySpecIngressOutputReference_Override(n NetworkPolicySpecIngressOutputReference, ...)
- func NewNetworkPolicySpecIngressPortsList_Override(n NetworkPolicySpecIngressPortsList, ...)
- func NewNetworkPolicySpecIngressPortsOutputReference_Override(n NetworkPolicySpecIngressPortsOutputReference, ...)
- func NewNetworkPolicySpecOutputReference_Override(n NetworkPolicySpecOutputReference, ...)
- func NewNetworkPolicySpecPodSelectorMatchExpressionsList_Override(n NetworkPolicySpecPodSelectorMatchExpressionsList, ...)
- func NewNetworkPolicySpecPodSelectorMatchExpressionsOutputReference_Override(n NetworkPolicySpecPodSelectorMatchExpressionsOutputReference, ...)
- func NewNetworkPolicySpecPodSelectorOutputReference_Override(n NetworkPolicySpecPodSelectorOutputReference, ...)
- func NewNetworkPolicy_Override(n NetworkPolicy, scope constructs.Construct, id *string, ...)
- type NetworkPolicy
- type NetworkPolicyConfig
- type NetworkPolicyMetadata
- type NetworkPolicyMetadataOutputReference
- type NetworkPolicySpec
- type NetworkPolicySpecEgress
- type NetworkPolicySpecEgressList
- type NetworkPolicySpecEgressOutputReference
- type NetworkPolicySpecEgressPorts
- type NetworkPolicySpecEgressPortsList
- type NetworkPolicySpecEgressPortsOutputReference
- type NetworkPolicySpecEgressTo
- type NetworkPolicySpecEgressToIpBlock
- type NetworkPolicySpecEgressToIpBlockOutputReference
- type NetworkPolicySpecEgressToList
- type NetworkPolicySpecEgressToNamespaceSelector
- type NetworkPolicySpecEgressToNamespaceSelectorMatchExpressions
- type NetworkPolicySpecEgressToNamespaceSelectorMatchExpressionsList
- type NetworkPolicySpecEgressToNamespaceSelectorMatchExpressionsOutputReference
- type NetworkPolicySpecEgressToNamespaceSelectorOutputReference
- type NetworkPolicySpecEgressToOutputReference
- type NetworkPolicySpecEgressToPodSelector
- type NetworkPolicySpecEgressToPodSelectorMatchExpressions
- type NetworkPolicySpecEgressToPodSelectorMatchExpressionsList
- type NetworkPolicySpecEgressToPodSelectorMatchExpressionsOutputReference
- type NetworkPolicySpecEgressToPodSelectorOutputReference
- type NetworkPolicySpecIngress
- type NetworkPolicySpecIngressFrom
- type NetworkPolicySpecIngressFromIpBlock
- type NetworkPolicySpecIngressFromIpBlockOutputReference
- type NetworkPolicySpecIngressFromList
- type NetworkPolicySpecIngressFromNamespaceSelector
- type NetworkPolicySpecIngressFromNamespaceSelectorMatchExpressions
- type NetworkPolicySpecIngressFromNamespaceSelectorMatchExpressionsList
- type NetworkPolicySpecIngressFromNamespaceSelectorMatchExpressionsOutputReference
- type NetworkPolicySpecIngressFromNamespaceSelectorOutputReference
- type NetworkPolicySpecIngressFromOutputReference
- type NetworkPolicySpecIngressFromPodSelector
- type NetworkPolicySpecIngressFromPodSelectorMatchExpressions
- type NetworkPolicySpecIngressFromPodSelectorMatchExpressionsList
- type NetworkPolicySpecIngressFromPodSelectorMatchExpressionsOutputReference
- type NetworkPolicySpecIngressFromPodSelectorOutputReference
- type NetworkPolicySpecIngressList
- type NetworkPolicySpecIngressOutputReference
- type NetworkPolicySpecIngressPorts
- type NetworkPolicySpecIngressPortsList
- type NetworkPolicySpecIngressPortsOutputReference
- type NetworkPolicySpecOutputReference
- type NetworkPolicySpecPodSelector
- type NetworkPolicySpecPodSelectorMatchExpressions
- type NetworkPolicySpecPodSelectorMatchExpressionsList
- type NetworkPolicySpecPodSelectorMatchExpressionsOutputReference
- type NetworkPolicySpecPodSelectorOutputReference
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NetworkPolicy_IsConstruct ¶
func NetworkPolicy_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Use this method instead of `instanceof` to properly detect `Construct` instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the `constructs` library on disk are seen as independent, completely different libraries. As a consequence, the class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` the other class. `npm install` will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.
Returns: true if `x` is an object created from a class which extends `Construct`.
func NetworkPolicy_TfResourceType ¶
func NetworkPolicy_TfResourceType() *string
func NewNetworkPolicyMetadataOutputReference_Override ¶
func NewNetworkPolicyMetadataOutputReference_Override(n NetworkPolicyMetadataOutputReference, terraformResource cdktf.IInterpolatingParent, terraformAttribute *string)
func NewNetworkPolicySpecEgressList_Override ¶
func NewNetworkPolicySpecEgressList_Override(n NetworkPolicySpecEgressList, terraformResource cdktf.IInterpolatingParent, terraformAttribute *string, wrapsSet *bool)
func NewNetworkPolicySpecEgressOutputReference_Override ¶
func NewNetworkPolicySpecEgressOutputReference_Override(n NetworkPolicySpecEgressOutputReference, terraformResource cdktf.IInterpolatingParent, terraformAttribute *string, complexObjectIndex *float64, complexObjectIsFromSet *bool)
func NewNetworkPolicySpecEgressPortsList_Override ¶
func NewNetworkPolicySpecEgressPortsList_Override(n NetworkPolicySpecEgressPortsList, terraformResource cdktf.IInterpolatingParent, terraformAttribute *string, wrapsSet *bool)
func NewNetworkPolicySpecEgressPortsOutputReference_Override ¶
func NewNetworkPolicySpecEgressPortsOutputReference_Override(n NetworkPolicySpecEgressPortsOutputReference, terraformResource cdktf.IInterpolatingParent, terraformAttribute *string, complexObjectIndex *float64, complexObjectIsFromSet *bool)
func NewNetworkPolicySpecEgressToIpBlockOutputReference_Override ¶
func NewNetworkPolicySpecEgressToIpBlockOutputReference_Override(n NetworkPolicySpecEgressToIpBlockOutputReference, terraformResource cdktf.IInterpolatingParent, terraformAttribute *string)
func NewNetworkPolicySpecEgressToList_Override ¶
func NewNetworkPolicySpecEgressToList_Override(n NetworkPolicySpecEgressToList, terraformResource cdktf.IInterpolatingParent, terraformAttribute *string, wrapsSet *bool)
func NewNetworkPolicySpecEgressToNamespaceSelectorMatchExpressionsList_Override ¶
func NewNetworkPolicySpecEgressToNamespaceSelectorMatchExpressionsList_Override(n NetworkPolicySpecEgressToNamespaceSelectorMatchExpressionsList, terraformResource cdktf.IInterpolatingParent, terraformAttribute *string, wrapsSet *bool)
func NewNetworkPolicySpecEgressToNamespaceSelectorMatchExpressionsOutputReference_Override ¶
func NewNetworkPolicySpecEgressToNamespaceSelectorMatchExpressionsOutputReference_Override(n NetworkPolicySpecEgressToNamespaceSelectorMatchExpressionsOutputReference, terraformResource cdktf.IInterpolatingParent, terraformAttribute *string, complexObjectIndex *float64, complexObjectIsFromSet *bool)
func NewNetworkPolicySpecEgressToNamespaceSelectorOutputReference_Override ¶
func NewNetworkPolicySpecEgressToNamespaceSelectorOutputReference_Override(n NetworkPolicySpecEgressToNamespaceSelectorOutputReference, terraformResource cdktf.IInterpolatingParent, terraformAttribute *string)
func NewNetworkPolicySpecEgressToOutputReference_Override ¶
func NewNetworkPolicySpecEgressToOutputReference_Override(n NetworkPolicySpecEgressToOutputReference, terraformResource cdktf.IInterpolatingParent, terraformAttribute *string, complexObjectIndex *float64, complexObjectIsFromSet *bool)
func NewNetworkPolicySpecEgressToPodSelectorMatchExpressionsList_Override ¶
func NewNetworkPolicySpecEgressToPodSelectorMatchExpressionsList_Override(n NetworkPolicySpecEgressToPodSelectorMatchExpressionsList, terraformResource cdktf.IInterpolatingParent, terraformAttribute *string, wrapsSet *bool)
func NewNetworkPolicySpecEgressToPodSelectorMatchExpressionsOutputReference_Override ¶
func NewNetworkPolicySpecEgressToPodSelectorMatchExpressionsOutputReference_Override(n NetworkPolicySpecEgressToPodSelectorMatchExpressionsOutputReference, terraformResource cdktf.IInterpolatingParent, terraformAttribute *string, complexObjectIndex *float64, complexObjectIsFromSet *bool)
func NewNetworkPolicySpecEgressToPodSelectorOutputReference_Override ¶
func NewNetworkPolicySpecEgressToPodSelectorOutputReference_Override(n NetworkPolicySpecEgressToPodSelectorOutputReference, terraformResource cdktf.IInterpolatingParent, terraformAttribute *string)
func NewNetworkPolicySpecIngressFromIpBlockOutputReference_Override ¶
func NewNetworkPolicySpecIngressFromIpBlockOutputReference_Override(n NetworkPolicySpecIngressFromIpBlockOutputReference, terraformResource cdktf.IInterpolatingParent, terraformAttribute *string)
func NewNetworkPolicySpecIngressFromList_Override ¶
func NewNetworkPolicySpecIngressFromList_Override(n NetworkPolicySpecIngressFromList, terraformResource cdktf.IInterpolatingParent, terraformAttribute *string, wrapsSet *bool)
func NewNetworkPolicySpecIngressFromNamespaceSelectorMatchExpressionsList_Override ¶
func NewNetworkPolicySpecIngressFromNamespaceSelectorMatchExpressionsList_Override(n NetworkPolicySpecIngressFromNamespaceSelectorMatchExpressionsList, terraformResource cdktf.IInterpolatingParent, terraformAttribute *string, wrapsSet *bool)
func NewNetworkPolicySpecIngressFromNamespaceSelectorMatchExpressionsOutputReference_Override ¶
func NewNetworkPolicySpecIngressFromNamespaceSelectorMatchExpressionsOutputReference_Override(n NetworkPolicySpecIngressFromNamespaceSelectorMatchExpressionsOutputReference, terraformResource cdktf.IInterpolatingParent, terraformAttribute *string, complexObjectIndex *float64, complexObjectIsFromSet *bool)
func NewNetworkPolicySpecIngressFromNamespaceSelectorOutputReference_Override ¶
func NewNetworkPolicySpecIngressFromNamespaceSelectorOutputReference_Override(n NetworkPolicySpecIngressFromNamespaceSelectorOutputReference, terraformResource cdktf.IInterpolatingParent, terraformAttribute *string)
func NewNetworkPolicySpecIngressFromOutputReference_Override ¶
func NewNetworkPolicySpecIngressFromOutputReference_Override(n NetworkPolicySpecIngressFromOutputReference, terraformResource cdktf.IInterpolatingParent, terraformAttribute *string, complexObjectIndex *float64, complexObjectIsFromSet *bool)
func NewNetworkPolicySpecIngressFromPodSelectorMatchExpressionsList_Override ¶
func NewNetworkPolicySpecIngressFromPodSelectorMatchExpressionsList_Override(n NetworkPolicySpecIngressFromPodSelectorMatchExpressionsList, terraformResource cdktf.IInterpolatingParent, terraformAttribute *string, wrapsSet *bool)
func NewNetworkPolicySpecIngressFromPodSelectorMatchExpressionsOutputReference_Override ¶
func NewNetworkPolicySpecIngressFromPodSelectorMatchExpressionsOutputReference_Override(n NetworkPolicySpecIngressFromPodSelectorMatchExpressionsOutputReference, terraformResource cdktf.IInterpolatingParent, terraformAttribute *string, complexObjectIndex *float64, complexObjectIsFromSet *bool)
func NewNetworkPolicySpecIngressFromPodSelectorOutputReference_Override ¶
func NewNetworkPolicySpecIngressFromPodSelectorOutputReference_Override(n NetworkPolicySpecIngressFromPodSelectorOutputReference, terraformResource cdktf.IInterpolatingParent, terraformAttribute *string)
func NewNetworkPolicySpecIngressList_Override ¶
func NewNetworkPolicySpecIngressList_Override(n NetworkPolicySpecIngressList, terraformResource cdktf.IInterpolatingParent, terraformAttribute *string, wrapsSet *bool)
func NewNetworkPolicySpecIngressOutputReference_Override ¶
func NewNetworkPolicySpecIngressOutputReference_Override(n NetworkPolicySpecIngressOutputReference, terraformResource cdktf.IInterpolatingParent, terraformAttribute *string, complexObjectIndex *float64, complexObjectIsFromSet *bool)
func NewNetworkPolicySpecIngressPortsList_Override ¶
func NewNetworkPolicySpecIngressPortsList_Override(n NetworkPolicySpecIngressPortsList, terraformResource cdktf.IInterpolatingParent, terraformAttribute *string, wrapsSet *bool)
func NewNetworkPolicySpecIngressPortsOutputReference_Override ¶
func NewNetworkPolicySpecIngressPortsOutputReference_Override(n NetworkPolicySpecIngressPortsOutputReference, terraformResource cdktf.IInterpolatingParent, terraformAttribute *string, complexObjectIndex *float64, complexObjectIsFromSet *bool)
func NewNetworkPolicySpecOutputReference_Override ¶
func NewNetworkPolicySpecOutputReference_Override(n NetworkPolicySpecOutputReference, terraformResource cdktf.IInterpolatingParent, terraformAttribute *string)
func NewNetworkPolicySpecPodSelectorMatchExpressionsList_Override ¶
func NewNetworkPolicySpecPodSelectorMatchExpressionsList_Override(n NetworkPolicySpecPodSelectorMatchExpressionsList, terraformResource cdktf.IInterpolatingParent, terraformAttribute *string, wrapsSet *bool)
func NewNetworkPolicySpecPodSelectorMatchExpressionsOutputReference_Override ¶
func NewNetworkPolicySpecPodSelectorMatchExpressionsOutputReference_Override(n NetworkPolicySpecPodSelectorMatchExpressionsOutputReference, terraformResource cdktf.IInterpolatingParent, terraformAttribute *string, complexObjectIndex *float64, complexObjectIsFromSet *bool)
func NewNetworkPolicySpecPodSelectorOutputReference_Override ¶
func NewNetworkPolicySpecPodSelectorOutputReference_Override(n NetworkPolicySpecPodSelectorOutputReference, terraformResource cdktf.IInterpolatingParent, terraformAttribute *string)
func NewNetworkPolicy_Override ¶
func NewNetworkPolicy_Override(n NetworkPolicy, scope constructs.Construct, id *string, config *NetworkPolicyConfig)
Create a new {@link https://www.terraform.io/docs/providers/kubernetes/r/network_policy kubernetes_network_policy} Resource.
Types ¶
type NetworkPolicy ¶
type NetworkPolicy interface { cdktf.TerraformResource // Experimental. CdktfStack() cdktf.TerraformStack // Experimental. Connection() interface{} // Experimental. SetConnection(val interface{}) // Experimental. ConstructNodeMetadata() *map[string]interface{} // Experimental. Count() *float64 // Experimental. SetCount(val *float64) // Experimental. DependsOn() *[]*string // Experimental. SetDependsOn(val *[]*string) // Experimental. ForEach() cdktf.ITerraformIterator // Experimental. SetForEach(val cdktf.ITerraformIterator) // Experimental. Fqn() *string // Experimental. FriendlyUniqueId() *string Id() *string SetId(val *string) IdInput() *string // Experimental. Lifecycle() *cdktf.TerraformResourceLifecycle // Experimental. SetLifecycle(val *cdktf.TerraformResourceLifecycle) Metadata() NetworkPolicyMetadataOutputReference MetadataInput() *NetworkPolicyMetadata // The tree node. Node() constructs.Node // Experimental. Provider() cdktf.TerraformProvider // Experimental. SetProvider(val cdktf.TerraformProvider) // Experimental. Provisioners() *[]interface{} // Experimental. SetProvisioners(val *[]interface{}) // Experimental. RawOverrides() interface{} Spec() NetworkPolicySpecOutputReference SpecInput() *NetworkPolicySpec // Experimental. TerraformGeneratorMetadata() *cdktf.TerraformProviderGeneratorMetadata // Experimental. TerraformMetaArguments() *map[string]interface{} // Experimental. TerraformResourceType() *string // Experimental. AddOverride(path *string, value interface{}) // Experimental. GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{} // Experimental. GetBooleanAttribute(terraformAttribute *string) cdktf.IResolvable // Experimental. GetBooleanMapAttribute(terraformAttribute *string) *map[string]*bool // Experimental. GetListAttribute(terraformAttribute *string) *[]*string // Experimental. GetNumberAttribute(terraformAttribute *string) *float64 // Experimental. GetNumberListAttribute(terraformAttribute *string) *[]*float64 // Experimental. GetNumberMapAttribute(terraformAttribute *string) *map[string]*float64 // Experimental. GetStringAttribute(terraformAttribute *string) *string // Experimental. GetStringMapAttribute(terraformAttribute *string) *map[string]*string // Experimental. InterpolationForAttribute(terraformAttribute *string) cdktf.IResolvable // Overrides the auto-generated logical ID with a specific ID. // Experimental. OverrideLogicalId(newLogicalId *string) PutMetadata(value *NetworkPolicyMetadata) PutSpec(value *NetworkPolicySpec) ResetId() // Resets a previously passed logical Id to use the auto-generated logical id again. // Experimental. ResetOverrideLogicalId() SynthesizeAttributes() *map[string]interface{} // Experimental. ToMetadata() interface{} // Returns a string representation of this construct. ToString() *string // Adds this resource to the terraform JSON output. // Experimental. ToTerraform() interface{} }
Represents a {@link https://www.terraform.io/docs/providers/kubernetes/r/network_policy kubernetes_network_policy}.
func NewNetworkPolicy ¶
func NewNetworkPolicy(scope constructs.Construct, id *string, config *NetworkPolicyConfig) NetworkPolicy
Create a new {@link https://www.terraform.io/docs/providers/kubernetes/r/network_policy kubernetes_network_policy} Resource.
type NetworkPolicyConfig ¶
type NetworkPolicyConfig struct { // Experimental. Connection interface{} `field:"optional" json:"connection" yaml:"connection"` // Experimental. Count *float64 `field:"optional" json:"count" yaml:"count"` // Experimental. DependsOn *[]cdktf.ITerraformDependable `field:"optional" json:"dependsOn" yaml:"dependsOn"` // Experimental. ForEach cdktf.ITerraformIterator `field:"optional" json:"forEach" yaml:"forEach"` // Experimental. Lifecycle *cdktf.TerraformResourceLifecycle `field:"optional" json:"lifecycle" yaml:"lifecycle"` // Experimental. Provider cdktf.TerraformProvider `field:"optional" json:"provider" yaml:"provider"` // Experimental. Provisioners *[]interface{} `field:"optional" json:"provisioners" yaml:"provisioners"` // metadata block. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/kubernetes/r/network_policy#metadata NetworkPolicy#metadata} Metadata *NetworkPolicyMetadata `field:"required" json:"metadata" yaml:"metadata"` // spec block. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/kubernetes/r/network_policy#spec NetworkPolicy#spec} Spec *NetworkPolicySpec `field:"required" json:"spec" yaml:"spec"` // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/kubernetes/r/network_policy#id NetworkPolicy#id}. // // Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2. // If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable. Id *string `field:"optional" json:"id" yaml:"id"` }
type NetworkPolicyMetadata ¶
type NetworkPolicyMetadata struct { // An unstructured key value map stored with the network policy that may be used to store arbitrary metadata. // // More info: http://kubernetes.io/docs/user-guide/annotations // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/kubernetes/r/network_policy#annotations NetworkPolicy#annotations} Annotations *map[string]*string `field:"optional" json:"annotations" yaml:"annotations"` // Prefix, used by the server, to generate a unique name ONLY IF the `name` field has not been provided. // // This value will also be combined with a unique suffix. Read more: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#idempotency // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/kubernetes/r/network_policy#generate_name NetworkPolicy#generate_name} GenerateName *string `field:"optional" json:"generateName" yaml:"generateName"` // Map of string keys and values that can be used to organize and categorize (scope and select) the network policy. // // May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/kubernetes/r/network_policy#labels NetworkPolicy#labels} Labels *map[string]*string `field:"optional" json:"labels" yaml:"labels"` // Name of the network policy, must be unique. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/kubernetes/r/network_policy#name NetworkPolicy#name} Name *string `field:"optional" json:"name" yaml:"name"` // Namespace defines the space within which name of the network policy must be unique. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/kubernetes/r/network_policy#namespace NetworkPolicy#namespace} Namespace *string `field:"optional" json:"namespace" yaml:"namespace"` }
type NetworkPolicyMetadataOutputReference ¶
type NetworkPolicyMetadataOutputReference interface { cdktf.ComplexObject Annotations() *map[string]*string SetAnnotations(val *map[string]*string) AnnotationsInput() *map[string]*string // the index of the complex object in a list. // Experimental. ComplexObjectIndex() interface{} // Experimental. SetComplexObjectIndex(val interface{}) // set to true if this item is from inside a set and needs tolist() for accessing it set to "0" for single list items. // Experimental. ComplexObjectIsFromSet() *bool // Experimental. SetComplexObjectIsFromSet(val *bool) // The creation stack of this resolvable which will be appended to errors thrown during resolution. // // If this returns an empty array the stack will not be attached. // Experimental. CreationStack() *[]*string // Experimental. Fqn() *string GenerateName() *string SetGenerateName(val *string) GenerateNameInput() *string Generation() *float64 InternalValue() *NetworkPolicyMetadata SetInternalValue(val *NetworkPolicyMetadata) Labels() *map[string]*string SetLabels(val *map[string]*string) LabelsInput() *map[string]*string Name() *string SetName(val *string) NameInput() *string Namespace() *string SetNamespace(val *string) NamespaceInput() *string ResourceVersion() *string // Experimental. TerraformAttribute() *string // Experimental. SetTerraformAttribute(val *string) // Experimental. TerraformResource() cdktf.IInterpolatingParent // Experimental. SetTerraformResource(val cdktf.IInterpolatingParent) Uid() *string // Experimental. ComputeFqn() *string // Experimental. GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{} // Experimental. GetBooleanAttribute(terraformAttribute *string) cdktf.IResolvable // Experimental. GetBooleanMapAttribute(terraformAttribute *string) *map[string]*bool // Experimental. GetListAttribute(terraformAttribute *string) *[]*string // Experimental. GetNumberAttribute(terraformAttribute *string) *float64 // Experimental. GetNumberListAttribute(terraformAttribute *string) *[]*float64 // Experimental. GetNumberMapAttribute(terraformAttribute *string) *map[string]*float64 // Experimental. GetStringAttribute(terraformAttribute *string) *string // Experimental. GetStringMapAttribute(terraformAttribute *string) *map[string]*string // Experimental. InterpolationAsList() cdktf.IResolvable // Experimental. InterpolationForAttribute(property *string) cdktf.IResolvable ResetAnnotations() ResetGenerateName() ResetLabels() ResetName() ResetNamespace() // Produce the Token's value at resolution time. // Experimental. Resolve(_context cdktf.IResolveContext) interface{} // Return a string representation of this resolvable object. // // Returns a reversible string representation. // Experimental. ToString() *string }
func NewNetworkPolicyMetadataOutputReference ¶
func NewNetworkPolicyMetadataOutputReference(terraformResource cdktf.IInterpolatingParent, terraformAttribute *string) NetworkPolicyMetadataOutputReference
type NetworkPolicySpec ¶
type NetworkPolicySpec struct { // pod_selector block. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/kubernetes/r/network_policy#pod_selector NetworkPolicy#pod_selector} PodSelector *NetworkPolicySpecPodSelector `field:"required" json:"podSelector" yaml:"podSelector"` // List of rule types that the NetworkPolicy relates to. // // Valid options are ["Ingress"], ["Egress"], or ["Ingress", "Egress"]. If this field is not specified, it will default based on the existence of Ingress or Egress rules; policies that contain an Egress section are assumed to affect Egress, and all policies (whether or not they contain an Ingress section) are assumed to affect Ingress. If you want to write an egress-only policy, you must explicitly specify policyTypes [ "Egress" ]. Likewise, if you want to write a policy that specifies that no egress is allowed, you must specify a policyTypes value that include "Egress" (since such a policy would not include an Egress section and would otherwise default to just [ "Ingress" ]). This field is beta-level in 1.8 // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/kubernetes/r/network_policy#policy_types NetworkPolicy#policy_types} PolicyTypes *[]*string `field:"required" json:"policyTypes" yaml:"policyTypes"` // egress block. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/kubernetes/r/network_policy#egress NetworkPolicy#egress} Egress interface{} `field:"optional" json:"egress" yaml:"egress"` // ingress block. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/kubernetes/r/network_policy#ingress NetworkPolicy#ingress} Ingress interface{} `field:"optional" json:"ingress" yaml:"ingress"` }
type NetworkPolicySpecEgress ¶
type NetworkPolicySpecEgress struct { // ports block. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/kubernetes/r/network_policy#ports NetworkPolicy#ports} Ports interface{} `field:"optional" json:"ports" yaml:"ports"` // to block. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/kubernetes/r/network_policy#to NetworkPolicy#to} To interface{} `field:"optional" json:"to" yaml:"to"` }
type NetworkPolicySpecEgressList ¶
type NetworkPolicySpecEgressList interface { cdktf.ComplexList // The creation stack of this resolvable which will be appended to errors thrown during resolution. // // If this returns an empty array the stack will not be attached. // Experimental. CreationStack() *[]*string // Experimental. Fqn() *string InternalValue() interface{} SetInternalValue(val interface{}) // The attribute on the parent resource this class is referencing. TerraformAttribute() *string SetTerraformAttribute(val *string) // The parent resource. TerraformResource() cdktf.IInterpolatingParent SetTerraformResource(val cdktf.IInterpolatingParent) // whether the list is wrapping a set (will add tolist() to be able to access an item via an index). WrapsSet() *bool SetWrapsSet(val *bool) // Experimental. ComputeFqn() *string Get(index *float64) NetworkPolicySpecEgressOutputReference // Produce the Token's value at resolution time. // Experimental. Resolve(_context cdktf.IResolveContext) interface{} // Return a string representation of this resolvable object. // // Returns a reversible string representation. // Experimental. ToString() *string }
func NewNetworkPolicySpecEgressList ¶
func NewNetworkPolicySpecEgressList(terraformResource cdktf.IInterpolatingParent, terraformAttribute *string, wrapsSet *bool) NetworkPolicySpecEgressList
type NetworkPolicySpecEgressOutputReference ¶
type NetworkPolicySpecEgressOutputReference interface { cdktf.ComplexObject // the index of the complex object in a list. // Experimental. ComplexObjectIndex() interface{} // Experimental. SetComplexObjectIndex(val interface{}) // set to true if this item is from inside a set and needs tolist() for accessing it set to "0" for single list items. // Experimental. ComplexObjectIsFromSet() *bool // Experimental. SetComplexObjectIsFromSet(val *bool) // The creation stack of this resolvable which will be appended to errors thrown during resolution. // // If this returns an empty array the stack will not be attached. // Experimental. CreationStack() *[]*string // Experimental. Fqn() *string InternalValue() interface{} SetInternalValue(val interface{}) Ports() NetworkPolicySpecEgressPortsList PortsInput() interface{} // Experimental. TerraformAttribute() *string // Experimental. SetTerraformAttribute(val *string) // Experimental. TerraformResource() cdktf.IInterpolatingParent // Experimental. SetTerraformResource(val cdktf.IInterpolatingParent) To() NetworkPolicySpecEgressToList ToInput() interface{} // Experimental. ComputeFqn() *string // Experimental. GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{} // Experimental. GetBooleanAttribute(terraformAttribute *string) cdktf.IResolvable // Experimental. GetBooleanMapAttribute(terraformAttribute *string) *map[string]*bool // Experimental. GetListAttribute(terraformAttribute *string) *[]*string // Experimental. GetNumberAttribute(terraformAttribute *string) *float64 // Experimental. GetNumberListAttribute(terraformAttribute *string) *[]*float64 // Experimental. GetNumberMapAttribute(terraformAttribute *string) *map[string]*float64 // Experimental. GetStringAttribute(terraformAttribute *string) *string // Experimental. GetStringMapAttribute(terraformAttribute *string) *map[string]*string // Experimental. InterpolationAsList() cdktf.IResolvable // Experimental. InterpolationForAttribute(property *string) cdktf.IResolvable PutPorts(value interface{}) PutTo(value interface{}) ResetPorts() ResetTo() // Produce the Token's value at resolution time. // Experimental. Resolve(_context cdktf.IResolveContext) interface{} // Return a string representation of this resolvable object. // // Returns a reversible string representation. // Experimental. ToString() *string }
func NewNetworkPolicySpecEgressOutputReference ¶
func NewNetworkPolicySpecEgressOutputReference(terraformResource cdktf.IInterpolatingParent, terraformAttribute *string, complexObjectIndex *float64, complexObjectIsFromSet *bool) NetworkPolicySpecEgressOutputReference
type NetworkPolicySpecEgressPorts ¶
type NetworkPolicySpecEgressPorts struct { // The port on the given protocol. // // This can either be a numerical or named port on a pod. If this field is not provided, this matches all port names and numbers. If present, only traffic on the specified protocol AND port will be matched. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/kubernetes/r/network_policy#port NetworkPolicy#port} Port *string `field:"optional" json:"port" yaml:"port"` // The protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this field defaults to TCP. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/kubernetes/r/network_policy#protocol NetworkPolicy#protocol} Protocol *string `field:"optional" json:"protocol" yaml:"protocol"` }
type NetworkPolicySpecEgressPortsList ¶
type NetworkPolicySpecEgressPortsList interface { cdktf.ComplexList // The creation stack of this resolvable which will be appended to errors thrown during resolution. // // If this returns an empty array the stack will not be attached. // Experimental. CreationStack() *[]*string // Experimental. Fqn() *string InternalValue() interface{} SetInternalValue(val interface{}) // The attribute on the parent resource this class is referencing. TerraformAttribute() *string SetTerraformAttribute(val *string) // The parent resource. TerraformResource() cdktf.IInterpolatingParent SetTerraformResource(val cdktf.IInterpolatingParent) // whether the list is wrapping a set (will add tolist() to be able to access an item via an index). WrapsSet() *bool SetWrapsSet(val *bool) // Experimental. ComputeFqn() *string Get(index *float64) NetworkPolicySpecEgressPortsOutputReference // Produce the Token's value at resolution time. // Experimental. Resolve(_context cdktf.IResolveContext) interface{} // Return a string representation of this resolvable object. // // Returns a reversible string representation. // Experimental. ToString() *string }
func NewNetworkPolicySpecEgressPortsList ¶
func NewNetworkPolicySpecEgressPortsList(terraformResource cdktf.IInterpolatingParent, terraformAttribute *string, wrapsSet *bool) NetworkPolicySpecEgressPortsList
type NetworkPolicySpecEgressPortsOutputReference ¶
type NetworkPolicySpecEgressPortsOutputReference interface { cdktf.ComplexObject // the index of the complex object in a list. // Experimental. ComplexObjectIndex() interface{} // Experimental. SetComplexObjectIndex(val interface{}) // set to true if this item is from inside a set and needs tolist() for accessing it set to "0" for single list items. // Experimental. ComplexObjectIsFromSet() *bool // Experimental. SetComplexObjectIsFromSet(val *bool) // The creation stack of this resolvable which will be appended to errors thrown during resolution. // // If this returns an empty array the stack will not be attached. // Experimental. CreationStack() *[]*string // Experimental. Fqn() *string InternalValue() interface{} SetInternalValue(val interface{}) Port() *string SetPort(val *string) PortInput() *string Protocol() *string SetProtocol(val *string) ProtocolInput() *string // Experimental. TerraformAttribute() *string // Experimental. SetTerraformAttribute(val *string) // Experimental. TerraformResource() cdktf.IInterpolatingParent // Experimental. SetTerraformResource(val cdktf.IInterpolatingParent) // Experimental. ComputeFqn() *string // Experimental. GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{} // Experimental. GetBooleanAttribute(terraformAttribute *string) cdktf.IResolvable // Experimental. GetBooleanMapAttribute(terraformAttribute *string) *map[string]*bool // Experimental. GetListAttribute(terraformAttribute *string) *[]*string // Experimental. GetNumberAttribute(terraformAttribute *string) *float64 // Experimental. GetNumberListAttribute(terraformAttribute *string) *[]*float64 // Experimental. GetNumberMapAttribute(terraformAttribute *string) *map[string]*float64 // Experimental. GetStringAttribute(terraformAttribute *string) *string // Experimental. GetStringMapAttribute(terraformAttribute *string) *map[string]*string // Experimental. InterpolationAsList() cdktf.IResolvable // Experimental. InterpolationForAttribute(property *string) cdktf.IResolvable ResetPort() ResetProtocol() // Produce the Token's value at resolution time. // Experimental. Resolve(_context cdktf.IResolveContext) interface{} // Return a string representation of this resolvable object. // // Returns a reversible string representation. // Experimental. ToString() *string }
func NewNetworkPolicySpecEgressPortsOutputReference ¶
func NewNetworkPolicySpecEgressPortsOutputReference(terraformResource cdktf.IInterpolatingParent, terraformAttribute *string, complexObjectIndex *float64, complexObjectIsFromSet *bool) NetworkPolicySpecEgressPortsOutputReference
type NetworkPolicySpecEgressTo ¶
type NetworkPolicySpecEgressTo struct { // ip_block block. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/kubernetes/r/network_policy#ip_block NetworkPolicy#ip_block} IpBlock *NetworkPolicySpecEgressToIpBlock `field:"optional" json:"ipBlock" yaml:"ipBlock"` // namespace_selector block. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/kubernetes/r/network_policy#namespace_selector NetworkPolicy#namespace_selector} NamespaceSelector *NetworkPolicySpecEgressToNamespaceSelector `field:"optional" json:"namespaceSelector" yaml:"namespaceSelector"` // pod_selector block. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/kubernetes/r/network_policy#pod_selector NetworkPolicy#pod_selector} PodSelector *NetworkPolicySpecEgressToPodSelector `field:"optional" json:"podSelector" yaml:"podSelector"` }
type NetworkPolicySpecEgressToIpBlock ¶
type NetworkPolicySpecEgressToIpBlock struct { // CIDR is a string representing the IP Block Valid examples are "192.168.1.1/24" or "2001:db9::/64". // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/kubernetes/r/network_policy#cidr NetworkPolicy#cidr} Cidr *string `field:"optional" json:"cidr" yaml:"cidr"` // Except is a slice of CIDRs that should not be included within an IP Block Valid examples are "192.168.1.1/24" or "2001:db9::/64" Except values will be rejected if they are outside the CIDR range. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/kubernetes/r/network_policy#except NetworkPolicy#except} Except *[]*string `field:"optional" json:"except" yaml:"except"` }
type NetworkPolicySpecEgressToIpBlockOutputReference ¶
type NetworkPolicySpecEgressToIpBlockOutputReference interface { cdktf.ComplexObject Cidr() *string SetCidr(val *string) CidrInput() *string // the index of the complex object in a list. // Experimental. ComplexObjectIndex() interface{} // Experimental. SetComplexObjectIndex(val interface{}) // set to true if this item is from inside a set and needs tolist() for accessing it set to "0" for single list items. // Experimental. ComplexObjectIsFromSet() *bool // Experimental. SetComplexObjectIsFromSet(val *bool) // The creation stack of this resolvable which will be appended to errors thrown during resolution. // // If this returns an empty array the stack will not be attached. // Experimental. CreationStack() *[]*string Except() *[]*string SetExcept(val *[]*string) ExceptInput() *[]*string // Experimental. Fqn() *string InternalValue() *NetworkPolicySpecEgressToIpBlock SetInternalValue(val *NetworkPolicySpecEgressToIpBlock) // Experimental. TerraformAttribute() *string // Experimental. SetTerraformAttribute(val *string) // Experimental. TerraformResource() cdktf.IInterpolatingParent // Experimental. SetTerraformResource(val cdktf.IInterpolatingParent) // Experimental. ComputeFqn() *string // Experimental. GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{} // Experimental. GetBooleanAttribute(terraformAttribute *string) cdktf.IResolvable // Experimental. GetBooleanMapAttribute(terraformAttribute *string) *map[string]*bool // Experimental. GetListAttribute(terraformAttribute *string) *[]*string // Experimental. GetNumberAttribute(terraformAttribute *string) *float64 // Experimental. GetNumberListAttribute(terraformAttribute *string) *[]*float64 // Experimental. GetNumberMapAttribute(terraformAttribute *string) *map[string]*float64 // Experimental. GetStringAttribute(terraformAttribute *string) *string // Experimental. GetStringMapAttribute(terraformAttribute *string) *map[string]*string // Experimental. InterpolationAsList() cdktf.IResolvable // Experimental. InterpolationForAttribute(property *string) cdktf.IResolvable ResetCidr() ResetExcept() // Produce the Token's value at resolution time. // Experimental. Resolve(_context cdktf.IResolveContext) interface{} // Return a string representation of this resolvable object. // // Returns a reversible string representation. // Experimental. ToString() *string }
func NewNetworkPolicySpecEgressToIpBlockOutputReference ¶
func NewNetworkPolicySpecEgressToIpBlockOutputReference(terraformResource cdktf.IInterpolatingParent, terraformAttribute *string) NetworkPolicySpecEgressToIpBlockOutputReference
type NetworkPolicySpecEgressToList ¶
type NetworkPolicySpecEgressToList interface { cdktf.ComplexList // The creation stack of this resolvable which will be appended to errors thrown during resolution. // // If this returns an empty array the stack will not be attached. // Experimental. CreationStack() *[]*string // Experimental. Fqn() *string InternalValue() interface{} SetInternalValue(val interface{}) // The attribute on the parent resource this class is referencing. TerraformAttribute() *string SetTerraformAttribute(val *string) // The parent resource. TerraformResource() cdktf.IInterpolatingParent SetTerraformResource(val cdktf.IInterpolatingParent) // whether the list is wrapping a set (will add tolist() to be able to access an item via an index). WrapsSet() *bool SetWrapsSet(val *bool) // Experimental. ComputeFqn() *string Get(index *float64) NetworkPolicySpecEgressToOutputReference // Produce the Token's value at resolution time. // Experimental. Resolve(_context cdktf.IResolveContext) interface{} // Return a string representation of this resolvable object. // // Returns a reversible string representation. // Experimental. ToString() *string }
func NewNetworkPolicySpecEgressToList ¶
func NewNetworkPolicySpecEgressToList(terraformResource cdktf.IInterpolatingParent, terraformAttribute *string, wrapsSet *bool) NetworkPolicySpecEgressToList
type NetworkPolicySpecEgressToNamespaceSelector ¶
type NetworkPolicySpecEgressToNamespaceSelector struct { // match_expressions block. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/kubernetes/r/network_policy#match_expressions NetworkPolicy#match_expressions} MatchExpressions interface{} `field:"optional" json:"matchExpressions" yaml:"matchExpressions"` // A map of {key,value} pairs. // // A single {key,value} in the matchLabels map is equivalent to an element of `match_expressions`, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/kubernetes/r/network_policy#match_labels NetworkPolicy#match_labels} MatchLabels *map[string]*string `field:"optional" json:"matchLabels" yaml:"matchLabels"` }
type NetworkPolicySpecEgressToNamespaceSelectorMatchExpressions ¶
type NetworkPolicySpecEgressToNamespaceSelectorMatchExpressions struct { // The label key that the selector applies to. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/kubernetes/r/network_policy#key NetworkPolicy#key} Key *string `field:"optional" json:"key" yaml:"key"` // A key's relationship to a set of values. Valid operators ard `In`, `NotIn`, `Exists` and `DoesNotExist`. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/kubernetes/r/network_policy#operator NetworkPolicy#operator} Operator *string `field:"optional" json:"operator" yaml:"operator"` // An array of string values. // // If the operator is `In` or `NotIn`, the values array must be non-empty. If the operator is `Exists` or `DoesNotExist`, the values array must be empty. This array is replaced during a strategic merge patch. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/kubernetes/r/network_policy#values NetworkPolicy#values} Values *[]*string `field:"optional" json:"values" yaml:"values"` }
type NetworkPolicySpecEgressToNamespaceSelectorMatchExpressionsList ¶
type NetworkPolicySpecEgressToNamespaceSelectorMatchExpressionsList interface { cdktf.ComplexList // The creation stack of this resolvable which will be appended to errors thrown during resolution. // // If this returns an empty array the stack will not be attached. // Experimental. CreationStack() *[]*string // Experimental. Fqn() *string InternalValue() interface{} SetInternalValue(val interface{}) // The attribute on the parent resource this class is referencing. TerraformAttribute() *string SetTerraformAttribute(val *string) // The parent resource. TerraformResource() cdktf.IInterpolatingParent SetTerraformResource(val cdktf.IInterpolatingParent) // whether the list is wrapping a set (will add tolist() to be able to access an item via an index). WrapsSet() *bool SetWrapsSet(val *bool) // Experimental. ComputeFqn() *string Get(index *float64) NetworkPolicySpecEgressToNamespaceSelectorMatchExpressionsOutputReference // Produce the Token's value at resolution time. // Experimental. Resolve(_context cdktf.IResolveContext) interface{} // Return a string representation of this resolvable object. // // Returns a reversible string representation. // Experimental. ToString() *string }
func NewNetworkPolicySpecEgressToNamespaceSelectorMatchExpressionsList ¶
func NewNetworkPolicySpecEgressToNamespaceSelectorMatchExpressionsList(terraformResource cdktf.IInterpolatingParent, terraformAttribute *string, wrapsSet *bool) NetworkPolicySpecEgressToNamespaceSelectorMatchExpressionsList
type NetworkPolicySpecEgressToNamespaceSelectorMatchExpressionsOutputReference ¶
type NetworkPolicySpecEgressToNamespaceSelectorMatchExpressionsOutputReference interface { cdktf.ComplexObject // the index of the complex object in a list. // Experimental. ComplexObjectIndex() interface{} // Experimental. SetComplexObjectIndex(val interface{}) // set to true if this item is from inside a set and needs tolist() for accessing it set to "0" for single list items. // Experimental. ComplexObjectIsFromSet() *bool // Experimental. SetComplexObjectIsFromSet(val *bool) // The creation stack of this resolvable which will be appended to errors thrown during resolution. // // If this returns an empty array the stack will not be attached. // Experimental. CreationStack() *[]*string // Experimental. Fqn() *string InternalValue() interface{} SetInternalValue(val interface{}) Key() *string SetKey(val *string) KeyInput() *string Operator() *string SetOperator(val *string) OperatorInput() *string // Experimental. TerraformAttribute() *string // Experimental. SetTerraformAttribute(val *string) // Experimental. TerraformResource() cdktf.IInterpolatingParent // Experimental. SetTerraformResource(val cdktf.IInterpolatingParent) Values() *[]*string SetValues(val *[]*string) ValuesInput() *[]*string // Experimental. ComputeFqn() *string // Experimental. GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{} // Experimental. GetBooleanAttribute(terraformAttribute *string) cdktf.IResolvable // Experimental. GetBooleanMapAttribute(terraformAttribute *string) *map[string]*bool // Experimental. GetListAttribute(terraformAttribute *string) *[]*string // Experimental. GetNumberAttribute(terraformAttribute *string) *float64 // Experimental. GetNumberListAttribute(terraformAttribute *string) *[]*float64 // Experimental. GetNumberMapAttribute(terraformAttribute *string) *map[string]*float64 // Experimental. GetStringAttribute(terraformAttribute *string) *string // Experimental. GetStringMapAttribute(terraformAttribute *string) *map[string]*string // Experimental. InterpolationAsList() cdktf.IResolvable // Experimental. InterpolationForAttribute(property *string) cdktf.IResolvable ResetKey() ResetOperator() ResetValues() // Produce the Token's value at resolution time. // Experimental. Resolve(_context cdktf.IResolveContext) interface{} // Return a string representation of this resolvable object. // // Returns a reversible string representation. // Experimental. ToString() *string }
func NewNetworkPolicySpecEgressToNamespaceSelectorMatchExpressionsOutputReference ¶
func NewNetworkPolicySpecEgressToNamespaceSelectorMatchExpressionsOutputReference(terraformResource cdktf.IInterpolatingParent, terraformAttribute *string, complexObjectIndex *float64, complexObjectIsFromSet *bool) NetworkPolicySpecEgressToNamespaceSelectorMatchExpressionsOutputReference
type NetworkPolicySpecEgressToNamespaceSelectorOutputReference ¶
type NetworkPolicySpecEgressToNamespaceSelectorOutputReference interface { cdktf.ComplexObject // the index of the complex object in a list. // Experimental. ComplexObjectIndex() interface{} // Experimental. SetComplexObjectIndex(val interface{}) // set to true if this item is from inside a set and needs tolist() for accessing it set to "0" for single list items. // Experimental. ComplexObjectIsFromSet() *bool // Experimental. SetComplexObjectIsFromSet(val *bool) // The creation stack of this resolvable which will be appended to errors thrown during resolution. // // If this returns an empty array the stack will not be attached. // Experimental. CreationStack() *[]*string // Experimental. Fqn() *string InternalValue() *NetworkPolicySpecEgressToNamespaceSelector SetInternalValue(val *NetworkPolicySpecEgressToNamespaceSelector) MatchExpressions() NetworkPolicySpecEgressToNamespaceSelectorMatchExpressionsList MatchExpressionsInput() interface{} MatchLabels() *map[string]*string SetMatchLabels(val *map[string]*string) MatchLabelsInput() *map[string]*string // Experimental. TerraformAttribute() *string // Experimental. SetTerraformAttribute(val *string) // Experimental. TerraformResource() cdktf.IInterpolatingParent // Experimental. SetTerraformResource(val cdktf.IInterpolatingParent) // Experimental. ComputeFqn() *string // Experimental. GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{} // Experimental. GetBooleanAttribute(terraformAttribute *string) cdktf.IResolvable // Experimental. GetBooleanMapAttribute(terraformAttribute *string) *map[string]*bool // Experimental. GetListAttribute(terraformAttribute *string) *[]*string // Experimental. GetNumberAttribute(terraformAttribute *string) *float64 // Experimental. GetNumberListAttribute(terraformAttribute *string) *[]*float64 // Experimental. GetNumberMapAttribute(terraformAttribute *string) *map[string]*float64 // Experimental. GetStringAttribute(terraformAttribute *string) *string // Experimental. GetStringMapAttribute(terraformAttribute *string) *map[string]*string // Experimental. InterpolationAsList() cdktf.IResolvable // Experimental. InterpolationForAttribute(property *string) cdktf.IResolvable PutMatchExpressions(value interface{}) ResetMatchExpressions() ResetMatchLabels() // Produce the Token's value at resolution time. // Experimental. Resolve(_context cdktf.IResolveContext) interface{} // Return a string representation of this resolvable object. // // Returns a reversible string representation. // Experimental. ToString() *string }
func NewNetworkPolicySpecEgressToNamespaceSelectorOutputReference ¶
func NewNetworkPolicySpecEgressToNamespaceSelectorOutputReference(terraformResource cdktf.IInterpolatingParent, terraformAttribute *string) NetworkPolicySpecEgressToNamespaceSelectorOutputReference
type NetworkPolicySpecEgressToOutputReference ¶
type NetworkPolicySpecEgressToOutputReference interface { cdktf.ComplexObject // the index of the complex object in a list. // Experimental. ComplexObjectIndex() interface{} // Experimental. SetComplexObjectIndex(val interface{}) // set to true if this item is from inside a set and needs tolist() for accessing it set to "0" for single list items. // Experimental. ComplexObjectIsFromSet() *bool // Experimental. SetComplexObjectIsFromSet(val *bool) // The creation stack of this resolvable which will be appended to errors thrown during resolution. // // If this returns an empty array the stack will not be attached. // Experimental. CreationStack() *[]*string // Experimental. Fqn() *string InternalValue() interface{} SetInternalValue(val interface{}) IpBlock() NetworkPolicySpecEgressToIpBlockOutputReference IpBlockInput() *NetworkPolicySpecEgressToIpBlock NamespaceSelector() NetworkPolicySpecEgressToNamespaceSelectorOutputReference NamespaceSelectorInput() *NetworkPolicySpecEgressToNamespaceSelector PodSelector() NetworkPolicySpecEgressToPodSelectorOutputReference PodSelectorInput() *NetworkPolicySpecEgressToPodSelector // Experimental. TerraformAttribute() *string // Experimental. SetTerraformAttribute(val *string) // Experimental. TerraformResource() cdktf.IInterpolatingParent // Experimental. SetTerraformResource(val cdktf.IInterpolatingParent) // Experimental. ComputeFqn() *string // Experimental. GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{} // Experimental. GetBooleanAttribute(terraformAttribute *string) cdktf.IResolvable // Experimental. GetBooleanMapAttribute(terraformAttribute *string) *map[string]*bool // Experimental. GetListAttribute(terraformAttribute *string) *[]*string // Experimental. GetNumberAttribute(terraformAttribute *string) *float64 // Experimental. GetNumberListAttribute(terraformAttribute *string) *[]*float64 // Experimental. GetNumberMapAttribute(terraformAttribute *string) *map[string]*float64 // Experimental. GetStringAttribute(terraformAttribute *string) *string // Experimental. GetStringMapAttribute(terraformAttribute *string) *map[string]*string // Experimental. InterpolationAsList() cdktf.IResolvable // Experimental. InterpolationForAttribute(property *string) cdktf.IResolvable PutIpBlock(value *NetworkPolicySpecEgressToIpBlock) PutNamespaceSelector(value *NetworkPolicySpecEgressToNamespaceSelector) PutPodSelector(value *NetworkPolicySpecEgressToPodSelector) ResetIpBlock() ResetNamespaceSelector() ResetPodSelector() // Produce the Token's value at resolution time. // Experimental. Resolve(_context cdktf.IResolveContext) interface{} // Return a string representation of this resolvable object. // // Returns a reversible string representation. // Experimental. ToString() *string }
func NewNetworkPolicySpecEgressToOutputReference ¶
func NewNetworkPolicySpecEgressToOutputReference(terraformResource cdktf.IInterpolatingParent, terraformAttribute *string, complexObjectIndex *float64, complexObjectIsFromSet *bool) NetworkPolicySpecEgressToOutputReference
type NetworkPolicySpecEgressToPodSelector ¶
type NetworkPolicySpecEgressToPodSelector struct { // match_expressions block. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/kubernetes/r/network_policy#match_expressions NetworkPolicy#match_expressions} MatchExpressions interface{} `field:"optional" json:"matchExpressions" yaml:"matchExpressions"` // A map of {key,value} pairs. // // A single {key,value} in the matchLabels map is equivalent to an element of `match_expressions`, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/kubernetes/r/network_policy#match_labels NetworkPolicy#match_labels} MatchLabels *map[string]*string `field:"optional" json:"matchLabels" yaml:"matchLabels"` }
type NetworkPolicySpecEgressToPodSelectorMatchExpressions ¶
type NetworkPolicySpecEgressToPodSelectorMatchExpressions struct { // The label key that the selector applies to. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/kubernetes/r/network_policy#key NetworkPolicy#key} Key *string `field:"optional" json:"key" yaml:"key"` // A key's relationship to a set of values. Valid operators ard `In`, `NotIn`, `Exists` and `DoesNotExist`. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/kubernetes/r/network_policy#operator NetworkPolicy#operator} Operator *string `field:"optional" json:"operator" yaml:"operator"` // An array of string values. // // If the operator is `In` or `NotIn`, the values array must be non-empty. If the operator is `Exists` or `DoesNotExist`, the values array must be empty. This array is replaced during a strategic merge patch. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/kubernetes/r/network_policy#values NetworkPolicy#values} Values *[]*string `field:"optional" json:"values" yaml:"values"` }
type NetworkPolicySpecEgressToPodSelectorMatchExpressionsList ¶
type NetworkPolicySpecEgressToPodSelectorMatchExpressionsList interface { cdktf.ComplexList // The creation stack of this resolvable which will be appended to errors thrown during resolution. // // If this returns an empty array the stack will not be attached. // Experimental. CreationStack() *[]*string // Experimental. Fqn() *string InternalValue() interface{} SetInternalValue(val interface{}) // The attribute on the parent resource this class is referencing. TerraformAttribute() *string SetTerraformAttribute(val *string) // The parent resource. TerraformResource() cdktf.IInterpolatingParent SetTerraformResource(val cdktf.IInterpolatingParent) // whether the list is wrapping a set (will add tolist() to be able to access an item via an index). WrapsSet() *bool SetWrapsSet(val *bool) // Experimental. ComputeFqn() *string Get(index *float64) NetworkPolicySpecEgressToPodSelectorMatchExpressionsOutputReference // Produce the Token's value at resolution time. // Experimental. Resolve(_context cdktf.IResolveContext) interface{} // Return a string representation of this resolvable object. // // Returns a reversible string representation. // Experimental. ToString() *string }
func NewNetworkPolicySpecEgressToPodSelectorMatchExpressionsList ¶
func NewNetworkPolicySpecEgressToPodSelectorMatchExpressionsList(terraformResource cdktf.IInterpolatingParent, terraformAttribute *string, wrapsSet *bool) NetworkPolicySpecEgressToPodSelectorMatchExpressionsList
type NetworkPolicySpecEgressToPodSelectorMatchExpressionsOutputReference ¶
type NetworkPolicySpecEgressToPodSelectorMatchExpressionsOutputReference interface { cdktf.ComplexObject // the index of the complex object in a list. // Experimental. ComplexObjectIndex() interface{} // Experimental. SetComplexObjectIndex(val interface{}) // set to true if this item is from inside a set and needs tolist() for accessing it set to "0" for single list items. // Experimental. ComplexObjectIsFromSet() *bool // Experimental. SetComplexObjectIsFromSet(val *bool) // The creation stack of this resolvable which will be appended to errors thrown during resolution. // // If this returns an empty array the stack will not be attached. // Experimental. CreationStack() *[]*string // Experimental. Fqn() *string InternalValue() interface{} SetInternalValue(val interface{}) Key() *string SetKey(val *string) KeyInput() *string Operator() *string SetOperator(val *string) OperatorInput() *string // Experimental. TerraformAttribute() *string // Experimental. SetTerraformAttribute(val *string) // Experimental. TerraformResource() cdktf.IInterpolatingParent // Experimental. SetTerraformResource(val cdktf.IInterpolatingParent) Values() *[]*string SetValues(val *[]*string) ValuesInput() *[]*string // Experimental. ComputeFqn() *string // Experimental. GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{} // Experimental. GetBooleanAttribute(terraformAttribute *string) cdktf.IResolvable // Experimental. GetBooleanMapAttribute(terraformAttribute *string) *map[string]*bool // Experimental. GetListAttribute(terraformAttribute *string) *[]*string // Experimental. GetNumberAttribute(terraformAttribute *string) *float64 // Experimental. GetNumberListAttribute(terraformAttribute *string) *[]*float64 // Experimental. GetNumberMapAttribute(terraformAttribute *string) *map[string]*float64 // Experimental. GetStringAttribute(terraformAttribute *string) *string // Experimental. GetStringMapAttribute(terraformAttribute *string) *map[string]*string // Experimental. InterpolationAsList() cdktf.IResolvable // Experimental. InterpolationForAttribute(property *string) cdktf.IResolvable ResetKey() ResetOperator() ResetValues() // Produce the Token's value at resolution time. // Experimental. Resolve(_context cdktf.IResolveContext) interface{} // Return a string representation of this resolvable object. // // Returns a reversible string representation. // Experimental. ToString() *string }
func NewNetworkPolicySpecEgressToPodSelectorMatchExpressionsOutputReference ¶
func NewNetworkPolicySpecEgressToPodSelectorMatchExpressionsOutputReference(terraformResource cdktf.IInterpolatingParent, terraformAttribute *string, complexObjectIndex *float64, complexObjectIsFromSet *bool) NetworkPolicySpecEgressToPodSelectorMatchExpressionsOutputReference
type NetworkPolicySpecEgressToPodSelectorOutputReference ¶
type NetworkPolicySpecEgressToPodSelectorOutputReference interface { cdktf.ComplexObject // the index of the complex object in a list. // Experimental. ComplexObjectIndex() interface{} // Experimental. SetComplexObjectIndex(val interface{}) // set to true if this item is from inside a set and needs tolist() for accessing it set to "0" for single list items. // Experimental. ComplexObjectIsFromSet() *bool // Experimental. SetComplexObjectIsFromSet(val *bool) // The creation stack of this resolvable which will be appended to errors thrown during resolution. // // If this returns an empty array the stack will not be attached. // Experimental. CreationStack() *[]*string // Experimental. Fqn() *string InternalValue() *NetworkPolicySpecEgressToPodSelector SetInternalValue(val *NetworkPolicySpecEgressToPodSelector) MatchExpressions() NetworkPolicySpecEgressToPodSelectorMatchExpressionsList MatchExpressionsInput() interface{} MatchLabels() *map[string]*string SetMatchLabels(val *map[string]*string) MatchLabelsInput() *map[string]*string // Experimental. TerraformAttribute() *string // Experimental. SetTerraformAttribute(val *string) // Experimental. TerraformResource() cdktf.IInterpolatingParent // Experimental. SetTerraformResource(val cdktf.IInterpolatingParent) // Experimental. ComputeFqn() *string // Experimental. GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{} // Experimental. GetBooleanAttribute(terraformAttribute *string) cdktf.IResolvable // Experimental. GetBooleanMapAttribute(terraformAttribute *string) *map[string]*bool // Experimental. GetListAttribute(terraformAttribute *string) *[]*string // Experimental. GetNumberAttribute(terraformAttribute *string) *float64 // Experimental. GetNumberListAttribute(terraformAttribute *string) *[]*float64 // Experimental. GetNumberMapAttribute(terraformAttribute *string) *map[string]*float64 // Experimental. GetStringAttribute(terraformAttribute *string) *string // Experimental. GetStringMapAttribute(terraformAttribute *string) *map[string]*string // Experimental. InterpolationAsList() cdktf.IResolvable // Experimental. InterpolationForAttribute(property *string) cdktf.IResolvable PutMatchExpressions(value interface{}) ResetMatchExpressions() ResetMatchLabels() // Produce the Token's value at resolution time. // Experimental. Resolve(_context cdktf.IResolveContext) interface{} // Return a string representation of this resolvable object. // // Returns a reversible string representation. // Experimental. ToString() *string }
func NewNetworkPolicySpecEgressToPodSelectorOutputReference ¶
func NewNetworkPolicySpecEgressToPodSelectorOutputReference(terraformResource cdktf.IInterpolatingParent, terraformAttribute *string) NetworkPolicySpecEgressToPodSelectorOutputReference
type NetworkPolicySpecIngress ¶
type NetworkPolicySpecIngress struct { // from block. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/kubernetes/r/network_policy#from NetworkPolicy#from} From interface{} `field:"optional" json:"from" yaml:"from"` // ports block. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/kubernetes/r/network_policy#ports NetworkPolicy#ports} Ports interface{} `field:"optional" json:"ports" yaml:"ports"` }
type NetworkPolicySpecIngressFrom ¶
type NetworkPolicySpecIngressFrom struct { // ip_block block. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/kubernetes/r/network_policy#ip_block NetworkPolicy#ip_block} IpBlock *NetworkPolicySpecIngressFromIpBlock `field:"optional" json:"ipBlock" yaml:"ipBlock"` // namespace_selector block. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/kubernetes/r/network_policy#namespace_selector NetworkPolicy#namespace_selector} NamespaceSelector *NetworkPolicySpecIngressFromNamespaceSelector `field:"optional" json:"namespaceSelector" yaml:"namespaceSelector"` // pod_selector block. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/kubernetes/r/network_policy#pod_selector NetworkPolicy#pod_selector} PodSelector *NetworkPolicySpecIngressFromPodSelector `field:"optional" json:"podSelector" yaml:"podSelector"` }
type NetworkPolicySpecIngressFromIpBlock ¶
type NetworkPolicySpecIngressFromIpBlock struct { // CIDR is a string representing the IP Block Valid examples are "192.168.1.1/24" or "2001:db9::/64". // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/kubernetes/r/network_policy#cidr NetworkPolicy#cidr} Cidr *string `field:"optional" json:"cidr" yaml:"cidr"` // Except is a slice of CIDRs that should not be included within an IP Block Valid examples are "192.168.1.1/24" or "2001:db9::/64" Except values will be rejected if they are outside the CIDR range. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/kubernetes/r/network_policy#except NetworkPolicy#except} Except *[]*string `field:"optional" json:"except" yaml:"except"` }
type NetworkPolicySpecIngressFromIpBlockOutputReference ¶
type NetworkPolicySpecIngressFromIpBlockOutputReference interface { cdktf.ComplexObject Cidr() *string SetCidr(val *string) CidrInput() *string // the index of the complex object in a list. // Experimental. ComplexObjectIndex() interface{} // Experimental. SetComplexObjectIndex(val interface{}) // set to true if this item is from inside a set and needs tolist() for accessing it set to "0" for single list items. // Experimental. ComplexObjectIsFromSet() *bool // Experimental. SetComplexObjectIsFromSet(val *bool) // The creation stack of this resolvable which will be appended to errors thrown during resolution. // // If this returns an empty array the stack will not be attached. // Experimental. CreationStack() *[]*string Except() *[]*string SetExcept(val *[]*string) ExceptInput() *[]*string // Experimental. Fqn() *string InternalValue() *NetworkPolicySpecIngressFromIpBlock SetInternalValue(val *NetworkPolicySpecIngressFromIpBlock) // Experimental. TerraformAttribute() *string // Experimental. SetTerraformAttribute(val *string) // Experimental. TerraformResource() cdktf.IInterpolatingParent // Experimental. SetTerraformResource(val cdktf.IInterpolatingParent) // Experimental. ComputeFqn() *string // Experimental. GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{} // Experimental. GetBooleanAttribute(terraformAttribute *string) cdktf.IResolvable // Experimental. GetBooleanMapAttribute(terraformAttribute *string) *map[string]*bool // Experimental. GetListAttribute(terraformAttribute *string) *[]*string // Experimental. GetNumberAttribute(terraformAttribute *string) *float64 // Experimental. GetNumberListAttribute(terraformAttribute *string) *[]*float64 // Experimental. GetNumberMapAttribute(terraformAttribute *string) *map[string]*float64 // Experimental. GetStringAttribute(terraformAttribute *string) *string // Experimental. GetStringMapAttribute(terraformAttribute *string) *map[string]*string // Experimental. InterpolationAsList() cdktf.IResolvable // Experimental. InterpolationForAttribute(property *string) cdktf.IResolvable ResetCidr() ResetExcept() // Produce the Token's value at resolution time. // Experimental. Resolve(_context cdktf.IResolveContext) interface{} // Return a string representation of this resolvable object. // // Returns a reversible string representation. // Experimental. ToString() *string }
func NewNetworkPolicySpecIngressFromIpBlockOutputReference ¶
func NewNetworkPolicySpecIngressFromIpBlockOutputReference(terraformResource cdktf.IInterpolatingParent, terraformAttribute *string) NetworkPolicySpecIngressFromIpBlockOutputReference
type NetworkPolicySpecIngressFromList ¶
type NetworkPolicySpecIngressFromList interface { cdktf.ComplexList // The creation stack of this resolvable which will be appended to errors thrown during resolution. // // If this returns an empty array the stack will not be attached. // Experimental. CreationStack() *[]*string // Experimental. Fqn() *string InternalValue() interface{} SetInternalValue(val interface{}) // The attribute on the parent resource this class is referencing. TerraformAttribute() *string SetTerraformAttribute(val *string) // The parent resource. TerraformResource() cdktf.IInterpolatingParent SetTerraformResource(val cdktf.IInterpolatingParent) // whether the list is wrapping a set (will add tolist() to be able to access an item via an index). WrapsSet() *bool SetWrapsSet(val *bool) // Experimental. ComputeFqn() *string Get(index *float64) NetworkPolicySpecIngressFromOutputReference // Produce the Token's value at resolution time. // Experimental. Resolve(_context cdktf.IResolveContext) interface{} // Return a string representation of this resolvable object. // // Returns a reversible string representation. // Experimental. ToString() *string }
func NewNetworkPolicySpecIngressFromList ¶
func NewNetworkPolicySpecIngressFromList(terraformResource cdktf.IInterpolatingParent, terraformAttribute *string, wrapsSet *bool) NetworkPolicySpecIngressFromList
type NetworkPolicySpecIngressFromNamespaceSelector ¶
type NetworkPolicySpecIngressFromNamespaceSelector struct { // match_expressions block. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/kubernetes/r/network_policy#match_expressions NetworkPolicy#match_expressions} MatchExpressions interface{} `field:"optional" json:"matchExpressions" yaml:"matchExpressions"` // A map of {key,value} pairs. // // A single {key,value} in the matchLabels map is equivalent to an element of `match_expressions`, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/kubernetes/r/network_policy#match_labels NetworkPolicy#match_labels} MatchLabels *map[string]*string `field:"optional" json:"matchLabels" yaml:"matchLabels"` }
type NetworkPolicySpecIngressFromNamespaceSelectorMatchExpressions ¶
type NetworkPolicySpecIngressFromNamespaceSelectorMatchExpressions struct { // The label key that the selector applies to. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/kubernetes/r/network_policy#key NetworkPolicy#key} Key *string `field:"optional" json:"key" yaml:"key"` // A key's relationship to a set of values. Valid operators ard `In`, `NotIn`, `Exists` and `DoesNotExist`. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/kubernetes/r/network_policy#operator NetworkPolicy#operator} Operator *string `field:"optional" json:"operator" yaml:"operator"` // An array of string values. // // If the operator is `In` or `NotIn`, the values array must be non-empty. If the operator is `Exists` or `DoesNotExist`, the values array must be empty. This array is replaced during a strategic merge patch. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/kubernetes/r/network_policy#values NetworkPolicy#values} Values *[]*string `field:"optional" json:"values" yaml:"values"` }
type NetworkPolicySpecIngressFromNamespaceSelectorMatchExpressionsList ¶
type NetworkPolicySpecIngressFromNamespaceSelectorMatchExpressionsList interface { cdktf.ComplexList // The creation stack of this resolvable which will be appended to errors thrown during resolution. // // If this returns an empty array the stack will not be attached. // Experimental. CreationStack() *[]*string // Experimental. Fqn() *string InternalValue() interface{} SetInternalValue(val interface{}) // The attribute on the parent resource this class is referencing. TerraformAttribute() *string SetTerraformAttribute(val *string) // The parent resource. TerraformResource() cdktf.IInterpolatingParent SetTerraformResource(val cdktf.IInterpolatingParent) // whether the list is wrapping a set (will add tolist() to be able to access an item via an index). WrapsSet() *bool SetWrapsSet(val *bool) // Experimental. ComputeFqn() *string Get(index *float64) NetworkPolicySpecIngressFromNamespaceSelectorMatchExpressionsOutputReference // Produce the Token's value at resolution time. // Experimental. Resolve(_context cdktf.IResolveContext) interface{} // Return a string representation of this resolvable object. // // Returns a reversible string representation. // Experimental. ToString() *string }
func NewNetworkPolicySpecIngressFromNamespaceSelectorMatchExpressionsList ¶
func NewNetworkPolicySpecIngressFromNamespaceSelectorMatchExpressionsList(terraformResource cdktf.IInterpolatingParent, terraformAttribute *string, wrapsSet *bool) NetworkPolicySpecIngressFromNamespaceSelectorMatchExpressionsList
type NetworkPolicySpecIngressFromNamespaceSelectorMatchExpressionsOutputReference ¶
type NetworkPolicySpecIngressFromNamespaceSelectorMatchExpressionsOutputReference interface { cdktf.ComplexObject // the index of the complex object in a list. // Experimental. ComplexObjectIndex() interface{} // Experimental. SetComplexObjectIndex(val interface{}) // set to true if this item is from inside a set and needs tolist() for accessing it set to "0" for single list items. // Experimental. ComplexObjectIsFromSet() *bool // Experimental. SetComplexObjectIsFromSet(val *bool) // The creation stack of this resolvable which will be appended to errors thrown during resolution. // // If this returns an empty array the stack will not be attached. // Experimental. CreationStack() *[]*string // Experimental. Fqn() *string InternalValue() interface{} SetInternalValue(val interface{}) Key() *string SetKey(val *string) KeyInput() *string Operator() *string SetOperator(val *string) OperatorInput() *string // Experimental. TerraformAttribute() *string // Experimental. SetTerraformAttribute(val *string) // Experimental. TerraformResource() cdktf.IInterpolatingParent // Experimental. SetTerraformResource(val cdktf.IInterpolatingParent) Values() *[]*string SetValues(val *[]*string) ValuesInput() *[]*string // Experimental. ComputeFqn() *string // Experimental. GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{} // Experimental. GetBooleanAttribute(terraformAttribute *string) cdktf.IResolvable // Experimental. GetBooleanMapAttribute(terraformAttribute *string) *map[string]*bool // Experimental. GetListAttribute(terraformAttribute *string) *[]*string // Experimental. GetNumberAttribute(terraformAttribute *string) *float64 // Experimental. GetNumberListAttribute(terraformAttribute *string) *[]*float64 // Experimental. GetNumberMapAttribute(terraformAttribute *string) *map[string]*float64 // Experimental. GetStringAttribute(terraformAttribute *string) *string // Experimental. GetStringMapAttribute(terraformAttribute *string) *map[string]*string // Experimental. InterpolationAsList() cdktf.IResolvable // Experimental. InterpolationForAttribute(property *string) cdktf.IResolvable ResetKey() ResetOperator() ResetValues() // Produce the Token's value at resolution time. // Experimental. Resolve(_context cdktf.IResolveContext) interface{} // Return a string representation of this resolvable object. // // Returns a reversible string representation. // Experimental. ToString() *string }
func NewNetworkPolicySpecIngressFromNamespaceSelectorMatchExpressionsOutputReference ¶
func NewNetworkPolicySpecIngressFromNamespaceSelectorMatchExpressionsOutputReference(terraformResource cdktf.IInterpolatingParent, terraformAttribute *string, complexObjectIndex *float64, complexObjectIsFromSet *bool) NetworkPolicySpecIngressFromNamespaceSelectorMatchExpressionsOutputReference
type NetworkPolicySpecIngressFromNamespaceSelectorOutputReference ¶
type NetworkPolicySpecIngressFromNamespaceSelectorOutputReference interface { cdktf.ComplexObject // the index of the complex object in a list. // Experimental. ComplexObjectIndex() interface{} // Experimental. SetComplexObjectIndex(val interface{}) // set to true if this item is from inside a set and needs tolist() for accessing it set to "0" for single list items. // Experimental. ComplexObjectIsFromSet() *bool // Experimental. SetComplexObjectIsFromSet(val *bool) // The creation stack of this resolvable which will be appended to errors thrown during resolution. // // If this returns an empty array the stack will not be attached. // Experimental. CreationStack() *[]*string // Experimental. Fqn() *string InternalValue() *NetworkPolicySpecIngressFromNamespaceSelector SetInternalValue(val *NetworkPolicySpecIngressFromNamespaceSelector) MatchExpressions() NetworkPolicySpecIngressFromNamespaceSelectorMatchExpressionsList MatchExpressionsInput() interface{} MatchLabels() *map[string]*string SetMatchLabels(val *map[string]*string) MatchLabelsInput() *map[string]*string // Experimental. TerraformAttribute() *string // Experimental. SetTerraformAttribute(val *string) // Experimental. TerraformResource() cdktf.IInterpolatingParent // Experimental. SetTerraformResource(val cdktf.IInterpolatingParent) // Experimental. ComputeFqn() *string // Experimental. GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{} // Experimental. GetBooleanAttribute(terraformAttribute *string) cdktf.IResolvable // Experimental. GetBooleanMapAttribute(terraformAttribute *string) *map[string]*bool // Experimental. GetListAttribute(terraformAttribute *string) *[]*string // Experimental. GetNumberAttribute(terraformAttribute *string) *float64 // Experimental. GetNumberListAttribute(terraformAttribute *string) *[]*float64 // Experimental. GetNumberMapAttribute(terraformAttribute *string) *map[string]*float64 // Experimental. GetStringAttribute(terraformAttribute *string) *string // Experimental. GetStringMapAttribute(terraformAttribute *string) *map[string]*string // Experimental. InterpolationAsList() cdktf.IResolvable // Experimental. InterpolationForAttribute(property *string) cdktf.IResolvable PutMatchExpressions(value interface{}) ResetMatchExpressions() ResetMatchLabels() // Produce the Token's value at resolution time. // Experimental. Resolve(_context cdktf.IResolveContext) interface{} // Return a string representation of this resolvable object. // // Returns a reversible string representation. // Experimental. ToString() *string }
func NewNetworkPolicySpecIngressFromNamespaceSelectorOutputReference ¶
func NewNetworkPolicySpecIngressFromNamespaceSelectorOutputReference(terraformResource cdktf.IInterpolatingParent, terraformAttribute *string) NetworkPolicySpecIngressFromNamespaceSelectorOutputReference
type NetworkPolicySpecIngressFromOutputReference ¶
type NetworkPolicySpecIngressFromOutputReference interface { cdktf.ComplexObject // the index of the complex object in a list. // Experimental. ComplexObjectIndex() interface{} // Experimental. SetComplexObjectIndex(val interface{}) // set to true if this item is from inside a set and needs tolist() for accessing it set to "0" for single list items. // Experimental. ComplexObjectIsFromSet() *bool // Experimental. SetComplexObjectIsFromSet(val *bool) // The creation stack of this resolvable which will be appended to errors thrown during resolution. // // If this returns an empty array the stack will not be attached. // Experimental. CreationStack() *[]*string // Experimental. Fqn() *string InternalValue() interface{} SetInternalValue(val interface{}) IpBlock() NetworkPolicySpecIngressFromIpBlockOutputReference IpBlockInput() *NetworkPolicySpecIngressFromIpBlock NamespaceSelector() NetworkPolicySpecIngressFromNamespaceSelectorOutputReference NamespaceSelectorInput() *NetworkPolicySpecIngressFromNamespaceSelector PodSelector() NetworkPolicySpecIngressFromPodSelectorOutputReference PodSelectorInput() *NetworkPolicySpecIngressFromPodSelector // Experimental. TerraformAttribute() *string // Experimental. SetTerraformAttribute(val *string) // Experimental. TerraformResource() cdktf.IInterpolatingParent // Experimental. SetTerraformResource(val cdktf.IInterpolatingParent) // Experimental. ComputeFqn() *string // Experimental. GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{} // Experimental. GetBooleanAttribute(terraformAttribute *string) cdktf.IResolvable // Experimental. GetBooleanMapAttribute(terraformAttribute *string) *map[string]*bool // Experimental. GetListAttribute(terraformAttribute *string) *[]*string // Experimental. GetNumberAttribute(terraformAttribute *string) *float64 // Experimental. GetNumberListAttribute(terraformAttribute *string) *[]*float64 // Experimental. GetNumberMapAttribute(terraformAttribute *string) *map[string]*float64 // Experimental. GetStringAttribute(terraformAttribute *string) *string // Experimental. GetStringMapAttribute(terraformAttribute *string) *map[string]*string // Experimental. InterpolationAsList() cdktf.IResolvable // Experimental. InterpolationForAttribute(property *string) cdktf.IResolvable PutIpBlock(value *NetworkPolicySpecIngressFromIpBlock) PutNamespaceSelector(value *NetworkPolicySpecIngressFromNamespaceSelector) PutPodSelector(value *NetworkPolicySpecIngressFromPodSelector) ResetIpBlock() ResetNamespaceSelector() ResetPodSelector() // Produce the Token's value at resolution time. // Experimental. Resolve(_context cdktf.IResolveContext) interface{} // Return a string representation of this resolvable object. // // Returns a reversible string representation. // Experimental. ToString() *string }
func NewNetworkPolicySpecIngressFromOutputReference ¶
func NewNetworkPolicySpecIngressFromOutputReference(terraformResource cdktf.IInterpolatingParent, terraformAttribute *string, complexObjectIndex *float64, complexObjectIsFromSet *bool) NetworkPolicySpecIngressFromOutputReference
type NetworkPolicySpecIngressFromPodSelector ¶
type NetworkPolicySpecIngressFromPodSelector struct { // match_expressions block. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/kubernetes/r/network_policy#match_expressions NetworkPolicy#match_expressions} MatchExpressions interface{} `field:"optional" json:"matchExpressions" yaml:"matchExpressions"` // A map of {key,value} pairs. // // A single {key,value} in the matchLabels map is equivalent to an element of `match_expressions`, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/kubernetes/r/network_policy#match_labels NetworkPolicy#match_labels} MatchLabels *map[string]*string `field:"optional" json:"matchLabels" yaml:"matchLabels"` }
type NetworkPolicySpecIngressFromPodSelectorMatchExpressions ¶
type NetworkPolicySpecIngressFromPodSelectorMatchExpressions struct { // The label key that the selector applies to. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/kubernetes/r/network_policy#key NetworkPolicy#key} Key *string `field:"optional" json:"key" yaml:"key"` // A key's relationship to a set of values. Valid operators ard `In`, `NotIn`, `Exists` and `DoesNotExist`. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/kubernetes/r/network_policy#operator NetworkPolicy#operator} Operator *string `field:"optional" json:"operator" yaml:"operator"` // An array of string values. // // If the operator is `In` or `NotIn`, the values array must be non-empty. If the operator is `Exists` or `DoesNotExist`, the values array must be empty. This array is replaced during a strategic merge patch. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/kubernetes/r/network_policy#values NetworkPolicy#values} Values *[]*string `field:"optional" json:"values" yaml:"values"` }
type NetworkPolicySpecIngressFromPodSelectorMatchExpressionsList ¶
type NetworkPolicySpecIngressFromPodSelectorMatchExpressionsList interface { cdktf.ComplexList // The creation stack of this resolvable which will be appended to errors thrown during resolution. // // If this returns an empty array the stack will not be attached. // Experimental. CreationStack() *[]*string // Experimental. Fqn() *string InternalValue() interface{} SetInternalValue(val interface{}) // The attribute on the parent resource this class is referencing. TerraformAttribute() *string SetTerraformAttribute(val *string) // The parent resource. TerraformResource() cdktf.IInterpolatingParent SetTerraformResource(val cdktf.IInterpolatingParent) // whether the list is wrapping a set (will add tolist() to be able to access an item via an index). WrapsSet() *bool SetWrapsSet(val *bool) // Experimental. ComputeFqn() *string Get(index *float64) NetworkPolicySpecIngressFromPodSelectorMatchExpressionsOutputReference // Produce the Token's value at resolution time. // Experimental. Resolve(_context cdktf.IResolveContext) interface{} // Return a string representation of this resolvable object. // // Returns a reversible string representation. // Experimental. ToString() *string }
func NewNetworkPolicySpecIngressFromPodSelectorMatchExpressionsList ¶
func NewNetworkPolicySpecIngressFromPodSelectorMatchExpressionsList(terraformResource cdktf.IInterpolatingParent, terraformAttribute *string, wrapsSet *bool) NetworkPolicySpecIngressFromPodSelectorMatchExpressionsList
type NetworkPolicySpecIngressFromPodSelectorMatchExpressionsOutputReference ¶
type NetworkPolicySpecIngressFromPodSelectorMatchExpressionsOutputReference interface { cdktf.ComplexObject // the index of the complex object in a list. // Experimental. ComplexObjectIndex() interface{} // Experimental. SetComplexObjectIndex(val interface{}) // set to true if this item is from inside a set and needs tolist() for accessing it set to "0" for single list items. // Experimental. ComplexObjectIsFromSet() *bool // Experimental. SetComplexObjectIsFromSet(val *bool) // The creation stack of this resolvable which will be appended to errors thrown during resolution. // // If this returns an empty array the stack will not be attached. // Experimental. CreationStack() *[]*string // Experimental. Fqn() *string InternalValue() interface{} SetInternalValue(val interface{}) Key() *string SetKey(val *string) KeyInput() *string Operator() *string SetOperator(val *string) OperatorInput() *string // Experimental. TerraformAttribute() *string // Experimental. SetTerraformAttribute(val *string) // Experimental. TerraformResource() cdktf.IInterpolatingParent // Experimental. SetTerraformResource(val cdktf.IInterpolatingParent) Values() *[]*string SetValues(val *[]*string) ValuesInput() *[]*string // Experimental. ComputeFqn() *string // Experimental. GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{} // Experimental. GetBooleanAttribute(terraformAttribute *string) cdktf.IResolvable // Experimental. GetBooleanMapAttribute(terraformAttribute *string) *map[string]*bool // Experimental. GetListAttribute(terraformAttribute *string) *[]*string // Experimental. GetNumberAttribute(terraformAttribute *string) *float64 // Experimental. GetNumberListAttribute(terraformAttribute *string) *[]*float64 // Experimental. GetNumberMapAttribute(terraformAttribute *string) *map[string]*float64 // Experimental. GetStringAttribute(terraformAttribute *string) *string // Experimental. GetStringMapAttribute(terraformAttribute *string) *map[string]*string // Experimental. InterpolationAsList() cdktf.IResolvable // Experimental. InterpolationForAttribute(property *string) cdktf.IResolvable ResetKey() ResetOperator() ResetValues() // Produce the Token's value at resolution time. // Experimental. Resolve(_context cdktf.IResolveContext) interface{} // Return a string representation of this resolvable object. // // Returns a reversible string representation. // Experimental. ToString() *string }
func NewNetworkPolicySpecIngressFromPodSelectorMatchExpressionsOutputReference ¶
func NewNetworkPolicySpecIngressFromPodSelectorMatchExpressionsOutputReference(terraformResource cdktf.IInterpolatingParent, terraformAttribute *string, complexObjectIndex *float64, complexObjectIsFromSet *bool) NetworkPolicySpecIngressFromPodSelectorMatchExpressionsOutputReference
type NetworkPolicySpecIngressFromPodSelectorOutputReference ¶
type NetworkPolicySpecIngressFromPodSelectorOutputReference interface { cdktf.ComplexObject // the index of the complex object in a list. // Experimental. ComplexObjectIndex() interface{} // Experimental. SetComplexObjectIndex(val interface{}) // set to true if this item is from inside a set and needs tolist() for accessing it set to "0" for single list items. // Experimental. ComplexObjectIsFromSet() *bool // Experimental. SetComplexObjectIsFromSet(val *bool) // The creation stack of this resolvable which will be appended to errors thrown during resolution. // // If this returns an empty array the stack will not be attached. // Experimental. CreationStack() *[]*string // Experimental. Fqn() *string InternalValue() *NetworkPolicySpecIngressFromPodSelector SetInternalValue(val *NetworkPolicySpecIngressFromPodSelector) MatchExpressions() NetworkPolicySpecIngressFromPodSelectorMatchExpressionsList MatchExpressionsInput() interface{} MatchLabels() *map[string]*string SetMatchLabels(val *map[string]*string) MatchLabelsInput() *map[string]*string // Experimental. TerraformAttribute() *string // Experimental. SetTerraformAttribute(val *string) // Experimental. TerraformResource() cdktf.IInterpolatingParent // Experimental. SetTerraformResource(val cdktf.IInterpolatingParent) // Experimental. ComputeFqn() *string // Experimental. GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{} // Experimental. GetBooleanAttribute(terraformAttribute *string) cdktf.IResolvable // Experimental. GetBooleanMapAttribute(terraformAttribute *string) *map[string]*bool // Experimental. GetListAttribute(terraformAttribute *string) *[]*string // Experimental. GetNumberAttribute(terraformAttribute *string) *float64 // Experimental. GetNumberListAttribute(terraformAttribute *string) *[]*float64 // Experimental. GetNumberMapAttribute(terraformAttribute *string) *map[string]*float64 // Experimental. GetStringAttribute(terraformAttribute *string) *string // Experimental. GetStringMapAttribute(terraformAttribute *string) *map[string]*string // Experimental. InterpolationAsList() cdktf.IResolvable // Experimental. InterpolationForAttribute(property *string) cdktf.IResolvable PutMatchExpressions(value interface{}) ResetMatchExpressions() ResetMatchLabels() // Produce the Token's value at resolution time. // Experimental. Resolve(_context cdktf.IResolveContext) interface{} // Return a string representation of this resolvable object. // // Returns a reversible string representation. // Experimental. ToString() *string }
func NewNetworkPolicySpecIngressFromPodSelectorOutputReference ¶
func NewNetworkPolicySpecIngressFromPodSelectorOutputReference(terraformResource cdktf.IInterpolatingParent, terraformAttribute *string) NetworkPolicySpecIngressFromPodSelectorOutputReference
type NetworkPolicySpecIngressList ¶
type NetworkPolicySpecIngressList interface { cdktf.ComplexList // The creation stack of this resolvable which will be appended to errors thrown during resolution. // // If this returns an empty array the stack will not be attached. // Experimental. CreationStack() *[]*string // Experimental. Fqn() *string InternalValue() interface{} SetInternalValue(val interface{}) // The attribute on the parent resource this class is referencing. TerraformAttribute() *string SetTerraformAttribute(val *string) // The parent resource. TerraformResource() cdktf.IInterpolatingParent SetTerraformResource(val cdktf.IInterpolatingParent) // whether the list is wrapping a set (will add tolist() to be able to access an item via an index). WrapsSet() *bool SetWrapsSet(val *bool) // Experimental. ComputeFqn() *string Get(index *float64) NetworkPolicySpecIngressOutputReference // Produce the Token's value at resolution time. // Experimental. Resolve(_context cdktf.IResolveContext) interface{} // Return a string representation of this resolvable object. // // Returns a reversible string representation. // Experimental. ToString() *string }
func NewNetworkPolicySpecIngressList ¶
func NewNetworkPolicySpecIngressList(terraformResource cdktf.IInterpolatingParent, terraformAttribute *string, wrapsSet *bool) NetworkPolicySpecIngressList
type NetworkPolicySpecIngressOutputReference ¶
type NetworkPolicySpecIngressOutputReference interface { cdktf.ComplexObject // the index of the complex object in a list. // Experimental. ComplexObjectIndex() interface{} // Experimental. SetComplexObjectIndex(val interface{}) // set to true if this item is from inside a set and needs tolist() for accessing it set to "0" for single list items. // Experimental. ComplexObjectIsFromSet() *bool // Experimental. SetComplexObjectIsFromSet(val *bool) // The creation stack of this resolvable which will be appended to errors thrown during resolution. // // If this returns an empty array the stack will not be attached. // Experimental. CreationStack() *[]*string // Experimental. Fqn() *string From() NetworkPolicySpecIngressFromList FromInput() interface{} InternalValue() interface{} SetInternalValue(val interface{}) Ports() NetworkPolicySpecIngressPortsList PortsInput() interface{} // Experimental. TerraformAttribute() *string // Experimental. SetTerraformAttribute(val *string) // Experimental. TerraformResource() cdktf.IInterpolatingParent // Experimental. SetTerraformResource(val cdktf.IInterpolatingParent) // Experimental. ComputeFqn() *string // Experimental. GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{} // Experimental. GetBooleanAttribute(terraformAttribute *string) cdktf.IResolvable // Experimental. GetBooleanMapAttribute(terraformAttribute *string) *map[string]*bool // Experimental. GetListAttribute(terraformAttribute *string) *[]*string // Experimental. GetNumberAttribute(terraformAttribute *string) *float64 // Experimental. GetNumberListAttribute(terraformAttribute *string) *[]*float64 // Experimental. GetNumberMapAttribute(terraformAttribute *string) *map[string]*float64 // Experimental. GetStringAttribute(terraformAttribute *string) *string // Experimental. GetStringMapAttribute(terraformAttribute *string) *map[string]*string // Experimental. InterpolationAsList() cdktf.IResolvable // Experimental. InterpolationForAttribute(property *string) cdktf.IResolvable PutFrom(value interface{}) PutPorts(value interface{}) ResetFrom() ResetPorts() // Produce the Token's value at resolution time. // Experimental. Resolve(_context cdktf.IResolveContext) interface{} // Return a string representation of this resolvable object. // // Returns a reversible string representation. // Experimental. ToString() *string }
func NewNetworkPolicySpecIngressOutputReference ¶
func NewNetworkPolicySpecIngressOutputReference(terraformResource cdktf.IInterpolatingParent, terraformAttribute *string, complexObjectIndex *float64, complexObjectIsFromSet *bool) NetworkPolicySpecIngressOutputReference
type NetworkPolicySpecIngressPorts ¶
type NetworkPolicySpecIngressPorts struct { // The port on the given protocol. // // This can either be a numerical or named port on a pod. If this field is not provided, this matches all port names and numbers. If present, only traffic on the specified protocol AND port will be matched. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/kubernetes/r/network_policy#port NetworkPolicy#port} Port *string `field:"optional" json:"port" yaml:"port"` // The protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this field defaults to TCP. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/kubernetes/r/network_policy#protocol NetworkPolicy#protocol} Protocol *string `field:"optional" json:"protocol" yaml:"protocol"` }
type NetworkPolicySpecIngressPortsList ¶
type NetworkPolicySpecIngressPortsList interface { cdktf.ComplexList // The creation stack of this resolvable which will be appended to errors thrown during resolution. // // If this returns an empty array the stack will not be attached. // Experimental. CreationStack() *[]*string // Experimental. Fqn() *string InternalValue() interface{} SetInternalValue(val interface{}) // The attribute on the parent resource this class is referencing. TerraformAttribute() *string SetTerraformAttribute(val *string) // The parent resource. TerraformResource() cdktf.IInterpolatingParent SetTerraformResource(val cdktf.IInterpolatingParent) // whether the list is wrapping a set (will add tolist() to be able to access an item via an index). WrapsSet() *bool SetWrapsSet(val *bool) // Experimental. ComputeFqn() *string Get(index *float64) NetworkPolicySpecIngressPortsOutputReference // Produce the Token's value at resolution time. // Experimental. Resolve(_context cdktf.IResolveContext) interface{} // Return a string representation of this resolvable object. // // Returns a reversible string representation. // Experimental. ToString() *string }
func NewNetworkPolicySpecIngressPortsList ¶
func NewNetworkPolicySpecIngressPortsList(terraformResource cdktf.IInterpolatingParent, terraformAttribute *string, wrapsSet *bool) NetworkPolicySpecIngressPortsList
type NetworkPolicySpecIngressPortsOutputReference ¶
type NetworkPolicySpecIngressPortsOutputReference interface { cdktf.ComplexObject // the index of the complex object in a list. // Experimental. ComplexObjectIndex() interface{} // Experimental. SetComplexObjectIndex(val interface{}) // set to true if this item is from inside a set and needs tolist() for accessing it set to "0" for single list items. // Experimental. ComplexObjectIsFromSet() *bool // Experimental. SetComplexObjectIsFromSet(val *bool) // The creation stack of this resolvable which will be appended to errors thrown during resolution. // // If this returns an empty array the stack will not be attached. // Experimental. CreationStack() *[]*string // Experimental. Fqn() *string InternalValue() interface{} SetInternalValue(val interface{}) Port() *string SetPort(val *string) PortInput() *string Protocol() *string SetProtocol(val *string) ProtocolInput() *string // Experimental. TerraformAttribute() *string // Experimental. SetTerraformAttribute(val *string) // Experimental. TerraformResource() cdktf.IInterpolatingParent // Experimental. SetTerraformResource(val cdktf.IInterpolatingParent) // Experimental. ComputeFqn() *string // Experimental. GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{} // Experimental. GetBooleanAttribute(terraformAttribute *string) cdktf.IResolvable // Experimental. GetBooleanMapAttribute(terraformAttribute *string) *map[string]*bool // Experimental. GetListAttribute(terraformAttribute *string) *[]*string // Experimental. GetNumberAttribute(terraformAttribute *string) *float64 // Experimental. GetNumberListAttribute(terraformAttribute *string) *[]*float64 // Experimental. GetNumberMapAttribute(terraformAttribute *string) *map[string]*float64 // Experimental. GetStringAttribute(terraformAttribute *string) *string // Experimental. GetStringMapAttribute(terraformAttribute *string) *map[string]*string // Experimental. InterpolationAsList() cdktf.IResolvable // Experimental. InterpolationForAttribute(property *string) cdktf.IResolvable ResetPort() ResetProtocol() // Produce the Token's value at resolution time. // Experimental. Resolve(_context cdktf.IResolveContext) interface{} // Return a string representation of this resolvable object. // // Returns a reversible string representation. // Experimental. ToString() *string }
func NewNetworkPolicySpecIngressPortsOutputReference ¶
func NewNetworkPolicySpecIngressPortsOutputReference(terraformResource cdktf.IInterpolatingParent, terraformAttribute *string, complexObjectIndex *float64, complexObjectIsFromSet *bool) NetworkPolicySpecIngressPortsOutputReference
type NetworkPolicySpecOutputReference ¶
type NetworkPolicySpecOutputReference interface { cdktf.ComplexObject // the index of the complex object in a list. // Experimental. ComplexObjectIndex() interface{} // Experimental. SetComplexObjectIndex(val interface{}) // set to true if this item is from inside a set and needs tolist() for accessing it set to "0" for single list items. // Experimental. ComplexObjectIsFromSet() *bool // Experimental. SetComplexObjectIsFromSet(val *bool) // The creation stack of this resolvable which will be appended to errors thrown during resolution. // // If this returns an empty array the stack will not be attached. // Experimental. CreationStack() *[]*string Egress() NetworkPolicySpecEgressList EgressInput() interface{} // Experimental. Fqn() *string Ingress() NetworkPolicySpecIngressList IngressInput() interface{} InternalValue() *NetworkPolicySpec SetInternalValue(val *NetworkPolicySpec) PodSelector() NetworkPolicySpecPodSelectorOutputReference PodSelectorInput() *NetworkPolicySpecPodSelector PolicyTypes() *[]*string SetPolicyTypes(val *[]*string) PolicyTypesInput() *[]*string // Experimental. TerraformAttribute() *string // Experimental. SetTerraformAttribute(val *string) // Experimental. TerraformResource() cdktf.IInterpolatingParent // Experimental. SetTerraformResource(val cdktf.IInterpolatingParent) // Experimental. ComputeFqn() *string // Experimental. GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{} // Experimental. GetBooleanAttribute(terraformAttribute *string) cdktf.IResolvable // Experimental. GetBooleanMapAttribute(terraformAttribute *string) *map[string]*bool // Experimental. GetListAttribute(terraformAttribute *string) *[]*string // Experimental. GetNumberAttribute(terraformAttribute *string) *float64 // Experimental. GetNumberListAttribute(terraformAttribute *string) *[]*float64 // Experimental. GetNumberMapAttribute(terraformAttribute *string) *map[string]*float64 // Experimental. GetStringAttribute(terraformAttribute *string) *string // Experimental. GetStringMapAttribute(terraformAttribute *string) *map[string]*string // Experimental. InterpolationAsList() cdktf.IResolvable // Experimental. InterpolationForAttribute(property *string) cdktf.IResolvable PutEgress(value interface{}) PutIngress(value interface{}) PutPodSelector(value *NetworkPolicySpecPodSelector) ResetEgress() ResetIngress() // Produce the Token's value at resolution time. // Experimental. Resolve(_context cdktf.IResolveContext) interface{} // Return a string representation of this resolvable object. // // Returns a reversible string representation. // Experimental. ToString() *string }
func NewNetworkPolicySpecOutputReference ¶
func NewNetworkPolicySpecOutputReference(terraformResource cdktf.IInterpolatingParent, terraformAttribute *string) NetworkPolicySpecOutputReference
type NetworkPolicySpecPodSelector ¶
type NetworkPolicySpecPodSelector struct { // match_expressions block. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/kubernetes/r/network_policy#match_expressions NetworkPolicy#match_expressions} MatchExpressions interface{} `field:"optional" json:"matchExpressions" yaml:"matchExpressions"` // A map of {key,value} pairs. // // A single {key,value} in the matchLabels map is equivalent to an element of `match_expressions`, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/kubernetes/r/network_policy#match_labels NetworkPolicy#match_labels} MatchLabels *map[string]*string `field:"optional" json:"matchLabels" yaml:"matchLabels"` }
type NetworkPolicySpecPodSelectorMatchExpressions ¶
type NetworkPolicySpecPodSelectorMatchExpressions struct { // The label key that the selector applies to. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/kubernetes/r/network_policy#key NetworkPolicy#key} Key *string `field:"optional" json:"key" yaml:"key"` // A key's relationship to a set of values. Valid operators ard `In`, `NotIn`, `Exists` and `DoesNotExist`. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/kubernetes/r/network_policy#operator NetworkPolicy#operator} Operator *string `field:"optional" json:"operator" yaml:"operator"` // An array of string values. // // If the operator is `In` or `NotIn`, the values array must be non-empty. If the operator is `Exists` or `DoesNotExist`, the values array must be empty. This array is replaced during a strategic merge patch. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/kubernetes/r/network_policy#values NetworkPolicy#values} Values *[]*string `field:"optional" json:"values" yaml:"values"` }
type NetworkPolicySpecPodSelectorMatchExpressionsList ¶
type NetworkPolicySpecPodSelectorMatchExpressionsList interface { cdktf.ComplexList // The creation stack of this resolvable which will be appended to errors thrown during resolution. // // If this returns an empty array the stack will not be attached. // Experimental. CreationStack() *[]*string // Experimental. Fqn() *string InternalValue() interface{} SetInternalValue(val interface{}) // The attribute on the parent resource this class is referencing. TerraformAttribute() *string SetTerraformAttribute(val *string) // The parent resource. TerraformResource() cdktf.IInterpolatingParent SetTerraformResource(val cdktf.IInterpolatingParent) // whether the list is wrapping a set (will add tolist() to be able to access an item via an index). WrapsSet() *bool SetWrapsSet(val *bool) // Experimental. ComputeFqn() *string Get(index *float64) NetworkPolicySpecPodSelectorMatchExpressionsOutputReference // Produce the Token's value at resolution time. // Experimental. Resolve(_context cdktf.IResolveContext) interface{} // Return a string representation of this resolvable object. // // Returns a reversible string representation. // Experimental. ToString() *string }
func NewNetworkPolicySpecPodSelectorMatchExpressionsList ¶
func NewNetworkPolicySpecPodSelectorMatchExpressionsList(terraformResource cdktf.IInterpolatingParent, terraformAttribute *string, wrapsSet *bool) NetworkPolicySpecPodSelectorMatchExpressionsList
type NetworkPolicySpecPodSelectorMatchExpressionsOutputReference ¶
type NetworkPolicySpecPodSelectorMatchExpressionsOutputReference interface { cdktf.ComplexObject // the index of the complex object in a list. // Experimental. ComplexObjectIndex() interface{} // Experimental. SetComplexObjectIndex(val interface{}) // set to true if this item is from inside a set and needs tolist() for accessing it set to "0" for single list items. // Experimental. ComplexObjectIsFromSet() *bool // Experimental. SetComplexObjectIsFromSet(val *bool) // The creation stack of this resolvable which will be appended to errors thrown during resolution. // // If this returns an empty array the stack will not be attached. // Experimental. CreationStack() *[]*string // Experimental. Fqn() *string InternalValue() interface{} SetInternalValue(val interface{}) Key() *string SetKey(val *string) KeyInput() *string Operator() *string SetOperator(val *string) OperatorInput() *string // Experimental. TerraformAttribute() *string // Experimental. SetTerraformAttribute(val *string) // Experimental. TerraformResource() cdktf.IInterpolatingParent // Experimental. SetTerraformResource(val cdktf.IInterpolatingParent) Values() *[]*string SetValues(val *[]*string) ValuesInput() *[]*string // Experimental. ComputeFqn() *string // Experimental. GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{} // Experimental. GetBooleanAttribute(terraformAttribute *string) cdktf.IResolvable // Experimental. GetBooleanMapAttribute(terraformAttribute *string) *map[string]*bool // Experimental. GetListAttribute(terraformAttribute *string) *[]*string // Experimental. GetNumberAttribute(terraformAttribute *string) *float64 // Experimental. GetNumberListAttribute(terraformAttribute *string) *[]*float64 // Experimental. GetNumberMapAttribute(terraformAttribute *string) *map[string]*float64 // Experimental. GetStringAttribute(terraformAttribute *string) *string // Experimental. GetStringMapAttribute(terraformAttribute *string) *map[string]*string // Experimental. InterpolationAsList() cdktf.IResolvable // Experimental. InterpolationForAttribute(property *string) cdktf.IResolvable ResetKey() ResetOperator() ResetValues() // Produce the Token's value at resolution time. // Experimental. Resolve(_context cdktf.IResolveContext) interface{} // Return a string representation of this resolvable object. // // Returns a reversible string representation. // Experimental. ToString() *string }
func NewNetworkPolicySpecPodSelectorMatchExpressionsOutputReference ¶
func NewNetworkPolicySpecPodSelectorMatchExpressionsOutputReference(terraformResource cdktf.IInterpolatingParent, terraformAttribute *string, complexObjectIndex *float64, complexObjectIsFromSet *bool) NetworkPolicySpecPodSelectorMatchExpressionsOutputReference
type NetworkPolicySpecPodSelectorOutputReference ¶
type NetworkPolicySpecPodSelectorOutputReference interface { cdktf.ComplexObject // the index of the complex object in a list. // Experimental. ComplexObjectIndex() interface{} // Experimental. SetComplexObjectIndex(val interface{}) // set to true if this item is from inside a set and needs tolist() for accessing it set to "0" for single list items. // Experimental. ComplexObjectIsFromSet() *bool // Experimental. SetComplexObjectIsFromSet(val *bool) // The creation stack of this resolvable which will be appended to errors thrown during resolution. // // If this returns an empty array the stack will not be attached. // Experimental. CreationStack() *[]*string // Experimental. Fqn() *string InternalValue() *NetworkPolicySpecPodSelector SetInternalValue(val *NetworkPolicySpecPodSelector) MatchExpressions() NetworkPolicySpecPodSelectorMatchExpressionsList MatchExpressionsInput() interface{} MatchLabels() *map[string]*string SetMatchLabels(val *map[string]*string) MatchLabelsInput() *map[string]*string // Experimental. TerraformAttribute() *string // Experimental. SetTerraformAttribute(val *string) // Experimental. TerraformResource() cdktf.IInterpolatingParent // Experimental. SetTerraformResource(val cdktf.IInterpolatingParent) // Experimental. ComputeFqn() *string // Experimental. GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{} // Experimental. GetBooleanAttribute(terraformAttribute *string) cdktf.IResolvable // Experimental. GetBooleanMapAttribute(terraformAttribute *string) *map[string]*bool // Experimental. GetListAttribute(terraformAttribute *string) *[]*string // Experimental. GetNumberAttribute(terraformAttribute *string) *float64 // Experimental. GetNumberListAttribute(terraformAttribute *string) *[]*float64 // Experimental. GetNumberMapAttribute(terraformAttribute *string) *map[string]*float64 // Experimental. GetStringAttribute(terraformAttribute *string) *string // Experimental. GetStringMapAttribute(terraformAttribute *string) *map[string]*string // Experimental. InterpolationAsList() cdktf.IResolvable // Experimental. InterpolationForAttribute(property *string) cdktf.IResolvable PutMatchExpressions(value interface{}) ResetMatchExpressions() ResetMatchLabels() // Produce the Token's value at resolution time. // Experimental. Resolve(_context cdktf.IResolveContext) interface{} // Return a string representation of this resolvable object. // // Returns a reversible string representation. // Experimental. ToString() *string }
func NewNetworkPolicySpecPodSelectorOutputReference ¶
func NewNetworkPolicySpecPodSelectorOutputReference(terraformResource cdktf.IInterpolatingParent, terraformAttribute *string) NetworkPolicySpecPodSelectorOutputReference
Source Files
¶
- networkpolicy.go
- networkpolicy_NetworkPolicy.go
- networkpolicy_NetworkPolicyConfig.go
- networkpolicy_NetworkPolicyMetadata.go
- networkpolicy_NetworkPolicyMetadataOutputReference.go
- networkpolicy_NetworkPolicyMetadataOutputReference__runtime_type_checks.go
- networkpolicy_NetworkPolicySpec.go
- networkpolicy_NetworkPolicySpecEgress.go
- networkpolicy_NetworkPolicySpecEgressList.go
- networkpolicy_NetworkPolicySpecEgressList__runtime_type_checks.go
- networkpolicy_NetworkPolicySpecEgressOutputReference.go
- networkpolicy_NetworkPolicySpecEgressOutputReference__runtime_type_checks.go
- networkpolicy_NetworkPolicySpecEgressPorts.go
- networkpolicy_NetworkPolicySpecEgressPortsList.go
- networkpolicy_NetworkPolicySpecEgressPortsList__runtime_type_checks.go
- networkpolicy_NetworkPolicySpecEgressPortsOutputReference.go
- networkpolicy_NetworkPolicySpecEgressPortsOutputReference__runtime_type_checks.go
- networkpolicy_NetworkPolicySpecEgressTo.go
- networkpolicy_NetworkPolicySpecEgressToIpBlock.go
- networkpolicy_NetworkPolicySpecEgressToIpBlockOutputReference.go
- networkpolicy_NetworkPolicySpecEgressToIpBlockOutputReference__runtime_type_checks.go
- networkpolicy_NetworkPolicySpecEgressToList.go
- networkpolicy_NetworkPolicySpecEgressToList__runtime_type_checks.go
- networkpolicy_NetworkPolicySpecEgressToNamespaceSelector.go
- networkpolicy_NetworkPolicySpecEgressToNamespaceSelectorMatchExpressions.go
- networkpolicy_NetworkPolicySpecEgressToNamespaceSelectorMatchExpressionsList.go
- networkpolicy_NetworkPolicySpecEgressToNamespaceSelectorMatchExpressionsList__runtime_type_checks.go
- networkpolicy_NetworkPolicySpecEgressToNamespaceSelectorMatchExpressionsOutputReference.go
- networkpolicy_NetworkPolicySpecEgressToNamespaceSelectorMatchExpressionsOutputReference__runtime_type_checks.go
- networkpolicy_NetworkPolicySpecEgressToNamespaceSelectorOutputReference.go
- networkpolicy_NetworkPolicySpecEgressToNamespaceSelectorOutputReference__runtime_type_checks.go
- networkpolicy_NetworkPolicySpecEgressToOutputReference.go
- networkpolicy_NetworkPolicySpecEgressToOutputReference__runtime_type_checks.go
- networkpolicy_NetworkPolicySpecEgressToPodSelector.go
- networkpolicy_NetworkPolicySpecEgressToPodSelectorMatchExpressions.go
- networkpolicy_NetworkPolicySpecEgressToPodSelectorMatchExpressionsList.go
- networkpolicy_NetworkPolicySpecEgressToPodSelectorMatchExpressionsList__runtime_type_checks.go
- networkpolicy_NetworkPolicySpecEgressToPodSelectorMatchExpressionsOutputReference.go
- networkpolicy_NetworkPolicySpecEgressToPodSelectorMatchExpressionsOutputReference__runtime_type_checks.go
- networkpolicy_NetworkPolicySpecEgressToPodSelectorOutputReference.go
- networkpolicy_NetworkPolicySpecEgressToPodSelectorOutputReference__runtime_type_checks.go
- networkpolicy_NetworkPolicySpecIngress.go
- networkpolicy_NetworkPolicySpecIngressFrom.go
- networkpolicy_NetworkPolicySpecIngressFromIpBlock.go
- networkpolicy_NetworkPolicySpecIngressFromIpBlockOutputReference.go
- networkpolicy_NetworkPolicySpecIngressFromIpBlockOutputReference__runtime_type_checks.go
- networkpolicy_NetworkPolicySpecIngressFromList.go
- networkpolicy_NetworkPolicySpecIngressFromList__runtime_type_checks.go
- networkpolicy_NetworkPolicySpecIngressFromNamespaceSelector.go
- networkpolicy_NetworkPolicySpecIngressFromNamespaceSelectorMatchExpressions.go
- networkpolicy_NetworkPolicySpecIngressFromNamespaceSelectorMatchExpressionsList.go
- networkpolicy_NetworkPolicySpecIngressFromNamespaceSelectorMatchExpressionsList__runtime_type_checks.go
- networkpolicy_NetworkPolicySpecIngressFromNamespaceSelectorMatchExpressionsOutputReference.go
- networkpolicy_NetworkPolicySpecIngressFromNamespaceSelectorMatchExpressionsOutputReference__runtime_type_checks.go
- networkpolicy_NetworkPolicySpecIngressFromNamespaceSelectorOutputReference.go
- networkpolicy_NetworkPolicySpecIngressFromNamespaceSelectorOutputReference__runtime_type_checks.go
- networkpolicy_NetworkPolicySpecIngressFromOutputReference.go
- networkpolicy_NetworkPolicySpecIngressFromOutputReference__runtime_type_checks.go
- networkpolicy_NetworkPolicySpecIngressFromPodSelector.go
- networkpolicy_NetworkPolicySpecIngressFromPodSelectorMatchExpressions.go
- networkpolicy_NetworkPolicySpecIngressFromPodSelectorMatchExpressionsList.go
- networkpolicy_NetworkPolicySpecIngressFromPodSelectorMatchExpressionsList__runtime_type_checks.go
- networkpolicy_NetworkPolicySpecIngressFromPodSelectorMatchExpressionsOutputReference.go
- networkpolicy_NetworkPolicySpecIngressFromPodSelectorMatchExpressionsOutputReference__runtime_type_checks.go
- networkpolicy_NetworkPolicySpecIngressFromPodSelectorOutputReference.go
- networkpolicy_NetworkPolicySpecIngressFromPodSelectorOutputReference__runtime_type_checks.go
- networkpolicy_NetworkPolicySpecIngressList.go
- networkpolicy_NetworkPolicySpecIngressList__runtime_type_checks.go
- networkpolicy_NetworkPolicySpecIngressOutputReference.go
- networkpolicy_NetworkPolicySpecIngressOutputReference__runtime_type_checks.go
- networkpolicy_NetworkPolicySpecIngressPorts.go
- networkpolicy_NetworkPolicySpecIngressPortsList.go
- networkpolicy_NetworkPolicySpecIngressPortsList__runtime_type_checks.go
- networkpolicy_NetworkPolicySpecIngressPortsOutputReference.go
- networkpolicy_NetworkPolicySpecIngressPortsOutputReference__runtime_type_checks.go
- networkpolicy_NetworkPolicySpecOutputReference.go
- networkpolicy_NetworkPolicySpecOutputReference__runtime_type_checks.go
- networkpolicy_NetworkPolicySpecPodSelector.go
- networkpolicy_NetworkPolicySpecPodSelectorMatchExpressions.go
- networkpolicy_NetworkPolicySpecPodSelectorMatchExpressionsList.go
- networkpolicy_NetworkPolicySpecPodSelectorMatchExpressionsList__runtime_type_checks.go
- networkpolicy_NetworkPolicySpecPodSelectorMatchExpressionsOutputReference.go
- networkpolicy_NetworkPolicySpecPodSelectorMatchExpressionsOutputReference__runtime_type_checks.go
- networkpolicy_NetworkPolicySpecPodSelectorOutputReference.go
- networkpolicy_NetworkPolicySpecPodSelectorOutputReference__runtime_type_checks.go
- networkpolicy_NetworkPolicy__runtime_type_checks.go