Class ManagedClusterSecurityProfile

java.lang.Object
com.azure.resourcemanager.containerservice.models.ManagedClusterSecurityProfile
All Implemented Interfaces:
com.azure.json.JsonSerializable<ManagedClusterSecurityProfile>

public final class ManagedClusterSecurityProfile extends Object implements com.azure.json.JsonSerializable<ManagedClusterSecurityProfile>
Security profile for the container service cluster.
  • Constructor Details

    • ManagedClusterSecurityProfile

      public ManagedClusterSecurityProfile()
      Creates an instance of ManagedClusterSecurityProfile class.
  • Method Details

    • defender

      Get the defender property: Microsoft Defender settings for the security profile.
      Returns:
      the defender value.
    • withDefender

      Set the defender property: Microsoft Defender settings for the security profile.
      Parameters:
      defender - the defender value to set.
      Returns:
      the ManagedClusterSecurityProfile object itself.
    • azureKeyVaultKms

      public AzureKeyVaultKms azureKeyVaultKms()
      Get the azureKeyVaultKms property: Azure Key Vault [key management service](https://kubernetes.io/docs/tasks/administer-cluster/kms-provider/) settings for the security profile.
      Returns:
      the azureKeyVaultKms value.
    • withAzureKeyVaultKms

      public ManagedClusterSecurityProfile withAzureKeyVaultKms(AzureKeyVaultKms azureKeyVaultKms)
      Set the azureKeyVaultKms property: Azure Key Vault [key management service](https://kubernetes.io/docs/tasks/administer-cluster/kms-provider/) settings for the security profile.
      Parameters:
      azureKeyVaultKms - the azureKeyVaultKms value to set.
      Returns:
      the ManagedClusterSecurityProfile object itself.
    • workloadIdentity

      Get the workloadIdentity property: Workload identity settings for the security profile. Workload identity enables Kubernetes applications to access Azure cloud resources securely with Azure AD. See https://aka.ms/aks/wi for more details.
      Returns:
      the workloadIdentity value.
    • withWorkloadIdentity

      public ManagedClusterSecurityProfile withWorkloadIdentity(ManagedClusterSecurityProfileWorkloadIdentity workloadIdentity)
      Set the workloadIdentity property: Workload identity settings for the security profile. Workload identity enables Kubernetes applications to access Azure cloud resources securely with Azure AD. See https://aka.ms/aks/wi for more details.
      Parameters:
      workloadIdentity - the workloadIdentity value to set.
      Returns:
      the ManagedClusterSecurityProfile object itself.
    • imageCleaner

      Get the imageCleaner property: Image Cleaner settings for the security profile.
      Returns:
      the imageCleaner value.
    • withImageCleaner

      Set the imageCleaner property: Image Cleaner settings for the security profile.
      Parameters:
      imageCleaner - the imageCleaner value to set.
      Returns:
      the ManagedClusterSecurityProfile object itself.
    • customCATrustCertificates

      public List<byte[]> customCATrustCertificates()
      Get the customCATrustCertificates property: A list of up to 10 base64 encoded CAs that will be added to the trust store on all nodes in the cluster. For more information see [Custom CA Trust Certificates](https://learn.microsoft.com/en-us/azure/aks/custom-certificate-authority).
      Returns:
      the customCATrustCertificates value.
    • withCustomCATrustCertificates

      public ManagedClusterSecurityProfile withCustomCATrustCertificates(List<byte[]> customCATrustCertificates)
      Set the customCATrustCertificates property: A list of up to 10 base64 encoded CAs that will be added to the trust store on all nodes in the cluster. For more information see [Custom CA Trust Certificates](https://learn.microsoft.com/en-us/azure/aks/custom-certificate-authority).
      Parameters:
      customCATrustCertificates - the customCATrustCertificates value to set.
      Returns:
      the ManagedClusterSecurityProfile object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<ManagedClusterSecurityProfile>
      Throws:
      IOException
    • fromJson

      public static ManagedClusterSecurityProfile fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of ManagedClusterSecurityProfile from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of ManagedClusterSecurityProfile if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IOException - If an error occurs while reading the ManagedClusterSecurityProfile.