ManagedClusterIdentity Class

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

public final class ManagedClusterIdentity

Identity for the managed cluster.

Constructor Summary

Constructor Description
ManagedClusterIdentity()

Creates an instance of ManagedClusterIdentity class.

Method Summary

Modifier and Type Method and Description
Map<String,DelegatedResource> delegatedResources()

Get the delegatedResources property: The delegated identity resources assigned to this managed cluster.

String principalId()

Get the principalId property: The principal id of the system assigned identity which is used by master components.

String tenantId()

Get the tenantId property: The tenant id of the system assigned identity which is used by master components.

ResourceIdentityType type()

Get the type property: The type of identity used for the managed cluster.

Map<String,ManagedServiceIdentityUserAssignedIdentitiesValue> userAssignedIdentities()

Get the userAssignedIdentities property: The keys must be ARM resource IDs in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.

void validate()

Validates the instance.

ManagedClusterIdentity withDelegatedResources(Map<String,DelegatedResource> delegatedResources)

Set the delegatedResources property: The delegated identity resources assigned to this managed cluster.

ManagedClusterIdentity withType(ResourceIdentityType type)

Set the type property: The type of identity used for the managed cluster.

ManagedClusterIdentity withUserAssignedIdentities(Map<String,ManagedServiceIdentityUserAssignedIdentitiesValue> userAssignedIdentities)

Set the userAssignedIdentities property: The keys must be ARM resource IDs in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.

Methods inherited from java.lang.Object

Constructor Details

ManagedClusterIdentity

public ManagedClusterIdentity()

Creates an instance of ManagedClusterIdentity class.

Method Details

delegatedResources

public Map delegatedResources()

Get the delegatedResources property: The delegated identity resources assigned to this managed cluster. This can only be set by another Azure Resource Provider, and managed cluster only accept one delegated identity resource. Internal use only.

Returns:

the delegatedResources value.

principalId

public String principalId()

Get the principalId property: The principal id of the system assigned identity which is used by master components.

Returns:

the principalId value.

tenantId

public String tenantId()

Get the tenantId property: The tenant id of the system assigned identity which is used by master components.

Returns:

the tenantId value.

type

public ResourceIdentityType type()

Get the type property: The type of identity used for the managed cluster. For more information see [use managed identities in AKS](https://docs.microsoft.com/azure/aks/use-managed-identity).

Returns:

the type value.

userAssignedIdentities

public Map userAssignedIdentities()

Get the userAssignedIdentities property: The keys must be ARM resource IDs in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.

Returns:

the userAssignedIdentities value.

validate

public void validate()

Validates the instance.

withDelegatedResources

public ManagedClusterIdentity withDelegatedResources(Map delegatedResources)

Set the delegatedResources property: The delegated identity resources assigned to this managed cluster. This can only be set by another Azure Resource Provider, and managed cluster only accept one delegated identity resource. Internal use only.

Parameters:

delegatedResources - the delegatedResources value to set.

Returns:

the ManagedClusterIdentity object itself.

withType

public ManagedClusterIdentity withType(ResourceIdentityType type)

Set the type property: The type of identity used for the managed cluster. For more information see [use managed identities in AKS](https://docs.microsoft.com/azure/aks/use-managed-identity).

Parameters:

type - the type value to set.

Returns:

the ManagedClusterIdentity object itself.

withUserAssignedIdentities

public ManagedClusterIdentity withUserAssignedIdentities(Map userAssignedIdentities)

Set the userAssignedIdentities property: The keys must be ARM resource IDs in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.

Parameters:

userAssignedIdentities - the userAssignedIdentities value to set.

Returns:

the ManagedClusterIdentity object itself.

Applies to