permalink |
---|
/gke_hub_feature_membership/ |
gke_hub_feature_membership
represents the google_gke_hub_feature_membership
Terraform resource.
This package contains functions and utilities for setting up the resource using Jsonnet code.
fn new()
fn newAttrs()
fn withConfigmanagement()
fn withConfigmanagementMixin()
fn withFeature()
fn withLocation()
fn withMembership()
fn withMesh()
fn withMeshMixin()
fn withProject()
fn withTimeouts()
fn withTimeoutsMixin()
obj configmanagement
obj mesh
obj timeouts
new()
google.gke_hub_feature_membership.new
injects a new google_gke_hub_feature_membership
Terraform resource
block into the root module document.
Additionally, this inserts a private function into the _ref
attribute that generates references to attributes of the
resource. For example, if you added a new instance to the root using:
# arguments omitted for brevity
google.gke_hub_feature_membership.new('some_id')
You can get the reference to the id
field of the created google.gke_hub_feature_membership
using the reference:
$._ref.google_gke_hub_feature_membership.some_id.get('id')
This is the same as directly entering "${ google_gke_hub_feature_membership.some_id.id }"
as the value.
NOTE: if you are chaining multiple resources together in a merge operation, you may not be able to use super
, self
,
or $
to refer to the root object. Instead, make an explicit outer object using local
.
Args:
resourceLabel
(string
): The name label of the block.feature
(string
): The name of the featurelocation
(string
): The location of the featuremembership
(string
): The name of the membershipproject
(string
): The project of the feature Whennull
, theproject
field will be omitted from the resulting object.configmanagement
(list[obj]
): Config Management-specific spec. Whennull
, theconfigmanagement
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.gke_hub_feature_membership.configmanagement.new constructor.mesh
(list[obj]
): Manage Mesh Features Whennull
, themesh
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.gke_hub_feature_membership.mesh.new constructor.timeouts
(obj
): Set thetimeouts
field on the resulting resource block. Whennull
, thetimeouts
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.gke_hub_feature_membership.timeouts.new constructor.
Returns:
- A mixin object that injects the new resource into the root Terraform configuration.
newAttrs()
google.gke_hub_feature_membership.newAttrs
constructs a new object with attributes and blocks configured for the gke_hub_feature_membership
Terraform resource.
Unlike google.gke_hub_feature_membership.new, this function will not inject the resource
block into the root Terraform document. Instead, this must be passed in as the attrs
argument for the
tf.withResource function to build a complete block.
This is most useful when you need to preprocess the attributes with functions, conditional, or looping logic prior to injecting into a complete block.
Args:
feature
(string
): The name of the featurelocation
(string
): The location of the featuremembership
(string
): The name of the membershipproject
(string
): The project of the feature Whennull
, theproject
field will be omitted from the resulting object.configmanagement
(list[obj]
): Config Management-specific spec. Whennull
, theconfigmanagement
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.gke_hub_feature_membership.configmanagement.new constructor.mesh
(list[obj]
): Manage Mesh Features Whennull
, themesh
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.gke_hub_feature_membership.mesh.new constructor.timeouts
(obj
): Set thetimeouts
field on the resulting object. Whennull
, thetimeouts
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.gke_hub_feature_membership.timeouts.new constructor.
Returns:
- An attribute object that can be used with tf.withResource to construct a new
gke_hub_feature_membership
resource into the root Terraform configuration.
withConfigmanagement()
google.list[obj].withConfigmanagement
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the configmanagement field.
This function will replace the array with the passed in value
. If you wish to instead append the
passed in value to the existing array, use the google.list[obj].withConfigmanagementMixin function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for theconfigmanagement
field.
withConfigmanagementMixin()
google.list[obj].withConfigmanagementMixin
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the configmanagement field.
This function will append the passed in array or object to the existing array. If you wish
to instead replace the array with the passed in value
, use the google.list[obj].withConfigmanagement
function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for theconfigmanagement
field.
withFeature()
google.string.withFeature
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the feature field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for thefeature
field.
withLocation()
google.string.withLocation
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the location field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for thelocation
field.
withMembership()
google.string.withMembership
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the membership field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for themembership
field.
withMesh()
google.list[obj].withMesh
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the mesh field.
This function will replace the array with the passed in value
. If you wish to instead append the
passed in value to the existing array, use the google.list[obj].withMeshMixin function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for themesh
field.
withMeshMixin()
google.list[obj].withMeshMixin
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the mesh field.
This function will append the passed in array or object to the existing array. If you wish
to instead replace the array with the passed in value
, use the google.list[obj].withMesh
function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for themesh
field.
withProject()
google.string.withProject
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the project field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for theproject
field.
withTimeouts()
google.obj.withTimeouts
constructs a mixin object that can be merged into the obj
Terraform resource block to set or update the timeouts field.
This function will replace the map with the passed in value
. If you wish to instead merge the
passed in value to the existing map, use the google.obj.withTimeoutsMixin function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(obj
): The value to set for thetimeouts
field.
withTimeoutsMixin()
google.obj.withTimeoutsMixin
constructs a mixin object that can be merged into the obj
Terraform resource block to set or update the timeouts field.
This function will merge the passed in value to the existing map. If you wish
to instead replace the entire map with the passed in value
, use the google.obj.withTimeouts
function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(obj
): The value to set for thetimeouts
field.
new()
google.gke_hub_feature_membership.configmanagement.new
constructs a new object with attributes and blocks configured for the configmanagement
Terraform sub block.
Args:
version
(string
): Optional. Version of ACM to install. Defaults to the latest version. Whennull
, theversion
field will be omitted from the resulting object.binauthz
(list[obj]
): Binauthz configuration for the cluster. Whennull
, thebinauthz
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.gke_hub_feature_membership.configmanagement.binauthz.new constructor.config_sync
(list[obj]
): Config Sync configuration for the cluster. Whennull
, theconfig_sync
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.gke_hub_feature_membership.configmanagement.config_sync.new constructor.hierarchy_controller
(list[obj]
): Hierarchy Controller configuration for the cluster. Whennull
, thehierarchy_controller
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.gke_hub_feature_membership.configmanagement.hierarchy_controller.new constructor.policy_controller
(list[obj]
): Policy Controller configuration for the cluster. Whennull
, thepolicy_controller
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.gke_hub_feature_membership.configmanagement.policy_controller.new constructor.
Returns:
- An attribute object that represents the
configmanagement
sub block.
new()
google.gke_hub_feature_membership.configmanagement.binauthz.new
constructs a new object with attributes and blocks configured for the binauthz
Terraform sub block.
Args:
enabled
(bool
): Whether binauthz is enabled in this cluster. Whennull
, theenabled
field will be omitted from the resulting object.
Returns:
- An attribute object that represents the
binauthz
sub block.
new()
google.gke_hub_feature_membership.configmanagement.config_sync.new
constructs a new object with attributes and blocks configured for the config_sync
Terraform sub block.
Args:
prevent_drift
(bool
): Set to true to enable the Config Sync admission webhook to prevent drifts. If set tofalse
, disables the Config Sync admission webhook and does not prevent drifts. Whennull
, theprevent_drift
field will be omitted from the resulting object.source_format
(string
): Specifies whether the Config Sync Repo is in "hierarchical" or "unstructured" mode. Whennull
, thesource_format
field will be omitted from the resulting object.git
(list[obj]
): Set thegit
field on the resulting object. Whennull
, thegit
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.gke_hub_feature_membership.configmanagement.config_sync.git.new constructor.oci
(list[obj]
): Set theoci
field on the resulting object. Whennull
, theoci
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.gke_hub_feature_membership.configmanagement.config_sync.oci.new constructor.
Returns:
- An attribute object that represents the
config_sync
sub block.
new()
google.gke_hub_feature_membership.configmanagement.config_sync.git.new
constructs a new object with attributes and blocks configured for the git
Terraform sub block.
Args:
gcp_service_account_email
(string
): The GCP Service Account Email used for auth when secretType is gcpServiceAccount. Whennull
, thegcp_service_account_email
field will be omitted from the resulting object.https_proxy
(string
): URL for the HTTPS proxy to be used when communicating with the Git repo. Whennull
, thehttps_proxy
field will be omitted from the resulting object.policy_dir
(string
): The path within the Git repository that represents the top level of the repo to sync. Default: the root directory of the repository. Whennull
, thepolicy_dir
field will be omitted from the resulting object.secret_type
(string
): Type of secret configured for access to the Git repo. Must be one of ssh, cookiefile, gcenode, token, gcpserviceaccount or none. The validation of this is case-sensitive. Whennull
, thesecret_type
field will be omitted from the resulting object.sync_branch
(string
): The branch of the repository to sync from. Default: master. Whennull
, thesync_branch
field will be omitted from the resulting object.sync_repo
(string
): The URL of the Git repository to use as the source of truth. Whennull
, thesync_repo
field will be omitted from the resulting object.sync_rev
(string
): Git revision (tag or hash) to check out. Default HEAD. Whennull
, thesync_rev
field will be omitted from the resulting object.sync_wait_secs
(string
): Period in seconds between consecutive syncs. Default: 15. Whennull
, thesync_wait_secs
field will be omitted from the resulting object.
Returns:
- An attribute object that represents the
git
sub block.
new()
google.gke_hub_feature_membership.configmanagement.config_sync.oci.new
constructs a new object with attributes and blocks configured for the oci
Terraform sub block.
Args:
gcp_service_account_email
(string
): The GCP Service Account Email used for auth when secret_type is gcpserviceaccount. Whennull
, thegcp_service_account_email
field will be omitted from the resulting object.policy_dir
(string
): The absolute path of the directory that contains the local resources. Default: the root directory of the image. Whennull
, thepolicy_dir
field will be omitted from the resulting object.secret_type
(string
): Type of secret configured for access to the OCI Image. Must be one of gcenode, gcpserviceaccount or none. The validation of this is case-sensitive. Whennull
, thesecret_type
field will be omitted from the resulting object.sync_repo
(string
): The OCI image repository URL for the package to sync from. e.g. LOCATION-docker.pkg.dev/PROJECT_ID/REPOSITORY_NAME/PACKAGE_NAME. Whennull
, thesync_repo
field will be omitted from the resulting object.sync_wait_secs
(string
): Period in seconds(int64 format) between consecutive syncs. Default: 15. Whennull
, thesync_wait_secs
field will be omitted from the resulting object.
Returns:
- An attribute object that represents the
oci
sub block.
new()
google.gke_hub_feature_membership.configmanagement.hierarchy_controller.new
constructs a new object with attributes and blocks configured for the hierarchy_controller
Terraform sub block.
Args:
enable_hierarchical_resource_quota
(bool
): Whether hierarchical resource quota is enabled in this cluster. Whennull
, theenable_hierarchical_resource_quota
field will be omitted from the resulting object.enable_pod_tree_labels
(bool
): Whether pod tree labels are enabled in this cluster. Whennull
, theenable_pod_tree_labels
field will be omitted from the resulting object.enabled
(bool
): Whether Hierarchy Controller is enabled in this cluster. Whennull
, theenabled
field will be omitted from the resulting object.
Returns:
- An attribute object that represents the
hierarchy_controller
sub block.
new()
google.gke_hub_feature_membership.configmanagement.policy_controller.new
constructs a new object with attributes and blocks configured for the policy_controller
Terraform sub block.
Args:
audit_interval_seconds
(string
): Sets the interval for Policy Controller Audit Scans (in seconds). When set to 0, this disables audit functionality altogether. Whennull
, theaudit_interval_seconds
field will be omitted from the resulting object.enabled
(bool
): Enables the installation of Policy Controller. If false, the rest of PolicyController fields take no effect. Whennull
, theenabled
field will be omitted from the resulting object.exemptable_namespaces
(list
): The set of namespaces that are excluded from Policy Controller checks. Namespaces do not need to currently exist on the cluster. Whennull
, theexemptable_namespaces
field will be omitted from the resulting object.log_denies_enabled
(bool
): Logs all denies and dry run failures. Whennull
, thelog_denies_enabled
field will be omitted from the resulting object.mutation_enabled
(bool
): Enable or disable mutation in policy controller. If true, mutation CRDs, webhook and controller deployment will be deployed to the cluster. Whennull
, themutation_enabled
field will be omitted from the resulting object.referential_rules_enabled
(bool
): Enables the ability to use Constraint Templates that reference to objects other than the object currently being evaluated. Whennull
, thereferential_rules_enabled
field will be omitted from the resulting object.template_library_installed
(bool
): Installs the default template library along with Policy Controller. Whennull
, thetemplate_library_installed
field will be omitted from the resulting object.monitoring
(list[obj]
): Specifies the backends Policy Controller should export metrics to. For example, to specify metrics should be exported to Cloud Monitoring and Prometheus, specify backends: ["cloudmonitoring", "prometheus"]. Default: ["cloudmonitoring", "prometheus"] Whennull
, themonitoring
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.gke_hub_feature_membership.configmanagement.policy_controller.monitoring.new constructor.
Returns:
- An attribute object that represents the
policy_controller
sub block.
new()
google.gke_hub_feature_membership.configmanagement.policy_controller.monitoring.new
constructs a new object with attributes and blocks configured for the monitoring
Terraform sub block.
Args:
backends
(list
): Specifies the list of backends Policy Controller will export to. Specifying an empty value[]
disables metrics export. Whennull
, thebackends
field will be omitted from the resulting object.
Returns:
- An attribute object that represents the
monitoring
sub block.
new()
google.gke_hub_feature_membership.mesh.new
constructs a new object with attributes and blocks configured for the mesh
Terraform sub block.
Args:
control_plane
(string
): DEPRECATED Whether to automatically manage Service Mesh control planes. Possible values: CONTROL_PLANE_MANAGEMENT_UNSPECIFIED, AUTOMATIC, MANUAL Whennull
, thecontrol_plane
field will be omitted from the resulting object.management
(string
): Whether to automatically manage Service Mesh. Possible values: MANAGEMENT_UNSPECIFIED, MANAGEMENT_AUTOMATIC, MANAGEMENT_MANUAL Whennull
, themanagement
field will be omitted from the resulting object.
Returns:
- An attribute object that represents the
mesh
sub block.
new()
google.gke_hub_feature_membership.timeouts.new
constructs a new object with attributes and blocks configured for the timeouts
Terraform sub block.
Args:
create
(string
): Set thecreate
field on the resulting object. Whennull
, thecreate
field will be omitted from the resulting object.delete
(string
): Set thedelete
field on the resulting object. Whennull
, thedelete
field will be omitted from the resulting object.update
(string
): Set theupdate
field on the resulting object. Whennull
, theupdate
field will be omitted from the resulting object.
Returns:
- An attribute object that represents the
timeouts
sub block.