Partilhar via


ManagedClusterSecurityProfile Class

  • java.lang.Object
    • com.azure.resourcemanager.containerservice.models.ManagedClusterSecurityProfile

Implements

public final class ManagedClusterSecurityProfile
implements JsonSerializable<ManagedClusterSecurityProfile>

Security profile for the container service cluster.

Constructor Summary

Constructor Description
ManagedClusterSecurityProfile()

Creates an instance of ManagedClusterSecurityProfile class.

Method Summary

Modifier and Type Method and Description
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.

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.

ManagedClusterSecurityProfileDefender defender()

Get the defender property: Microsoft Defender settings for the security profile.

static ManagedClusterSecurityProfile fromJson(JsonReader jsonReader)

Reads an instance of ManagedClusterSecurityProfile from the JsonReader.

ManagedClusterSecurityProfileImageCleaner imageCleaner()

Get the imageCleaner property: Image Cleaner settings for the security profile.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

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.

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.

ManagedClusterSecurityProfile withDefender(ManagedClusterSecurityProfileDefender defender)

Set the defender property: Microsoft Defender settings for the security profile.

ManagedClusterSecurityProfile withImageCleaner(ManagedClusterSecurityProfileImageCleaner imageCleaner)

Set the imageCleaner property: Image Cleaner settings for the security profile.

ManagedClusterSecurityProfile withWorkloadIdentity(ManagedClusterSecurityProfileWorkloadIdentity workloadIdentity)

Set the workloadIdentity property: Workload identity settings for the security profile.

ManagedClusterSecurityProfileWorkloadIdentity workloadIdentity()

Get the workloadIdentity property: Workload identity settings for the security profile.

Methods inherited from java.lang.Object

Constructor Details

ManagedClusterSecurityProfile

public ManagedClusterSecurityProfile()

Creates an instance of ManagedClusterSecurityProfile class.

Method Details

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.

customCATrustCertificates

public List 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.

defender

public ManagedClusterSecurityProfileDefender defender()

Get the defender property: Microsoft Defender settings for the security profile.

Returns:

the defender value.

fromJson

public static ManagedClusterSecurityProfile fromJson(JsonReader jsonReader)

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.

imageCleaner

public ManagedClusterSecurityProfileImageCleaner imageCleaner()

Get the imageCleaner property: Image Cleaner settings for the security profile.

Returns:

the imageCleaner value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

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.

withCustomCATrustCertificates

public ManagedClusterSecurityProfile withCustomCATrustCertificates(List 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.

withDefender

public ManagedClusterSecurityProfile withDefender(ManagedClusterSecurityProfileDefender defender)

Set the defender property: Microsoft Defender settings for the security profile.

Parameters:

defender - the defender value to set.

Returns:

the ManagedClusterSecurityProfile object itself.

withImageCleaner

public ManagedClusterSecurityProfile withImageCleaner(ManagedClusterSecurityProfileImageCleaner imageCleaner)

Set the imageCleaner property: Image Cleaner settings for the security profile.

Parameters:

imageCleaner - the imageCleaner value to set.

Returns:

the ManagedClusterSecurityProfile object itself.

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.

workloadIdentity

public ManagedClusterSecurityProfileWorkloadIdentity 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.

Applies to