pulumi-azuread 5.48.0a1706744699__py3-none-any.whl → 6.8.0a1766208344__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of pulumi-azuread might be problematic. Click here for more details.
- pulumi_azuread/__init__.py +48 -1
- pulumi_azuread/_inputs.py +3803 -919
- pulumi_azuread/_utilities.py +52 -12
- pulumi_azuread/access_package.py +84 -78
- pulumi_azuread/access_package_assignment_policy.py +202 -196
- pulumi_azuread/access_package_catalog.py +82 -76
- pulumi_azuread/access_package_catalog_role_assignment.py +73 -67
- pulumi_azuread/access_package_resource_catalog_association.py +73 -67
- pulumi_azuread/access_package_resource_package_association.py +79 -73
- pulumi_azuread/administrative_unit.py +120 -100
- pulumi_azuread/administrative_unit_member.py +66 -50
- pulumi_azuread/administrative_unit_role_member.py +75 -69
- pulumi_azuread/app_role_assignment.py +164 -264
- pulumi_azuread/application.py +766 -692
- pulumi_azuread/application_api_access.py +84 -80
- pulumi_azuread/application_app_role.py +120 -116
- pulumi_azuread/application_certificate.py +349 -211
- pulumi_azuread/application_fallback_public_client.py +50 -44
- pulumi_azuread/application_federated_identity_credential.py +142 -197
- pulumi_azuread/application_from_template.py +90 -84
- pulumi_azuread/application_identifier_uri.py +56 -52
- pulumi_azuread/application_known_clients.py +50 -44
- pulumi_azuread/application_optional_claims.py +87 -81
- pulumi_azuread/application_owner.py +76 -42
- pulumi_azuread/application_password.py +159 -205
- pulumi_azuread/application_permission_scope.py +160 -156
- pulumi_azuread/application_pre_authorized.py +120 -236
- pulumi_azuread/application_redirect_uris.py +75 -69
- pulumi_azuread/application_registration.py +315 -309
- pulumi_azuread/authentication_strength_policy.py +73 -67
- pulumi_azuread/claims_mapping_policy.py +48 -42
- pulumi_azuread/conditional_access_policy.py +248 -232
- pulumi_azuread/config/__init__.py +2 -1
- pulumi_azuread/config/__init__.pyi +23 -17
- pulumi_azuread/config/vars.py +47 -37
- pulumi_azuread/custom_directory_role.py +128 -122
- pulumi_azuread/directory_role.py +60 -54
- pulumi_azuread/directory_role_assignment.py +194 -181
- pulumi_azuread/directory_role_eligibility_schedule_request.py +86 -80
- pulumi_azuread/directory_role_member.py +54 -48
- pulumi_azuread/get_access_package.py +45 -31
- pulumi_azuread/get_access_package_catalog.py +40 -27
- pulumi_azuread/get_access_package_catalog_role.py +39 -25
- pulumi_azuread/get_administrative_unit.py +42 -27
- pulumi_azuread/get_application.py +135 -94
- pulumi_azuread/get_application_published_app_ids.py +42 -47
- pulumi_azuread/get_application_template.py +49 -33
- pulumi_azuread/get_client_config.py +24 -15
- pulumi_azuread/get_directory_object.py +32 -21
- pulumi_azuread/get_directory_role_templates.py +20 -12
- pulumi_azuread/get_directory_roles.py +23 -14
- pulumi_azuread/get_domains.py +65 -46
- pulumi_azuread/get_group.py +147 -88
- pulumi_azuread/get_group_role_management_policy.py +178 -0
- pulumi_azuread/get_groups.py +71 -51
- pulumi_azuread/get_named_location.py +47 -22
- pulumi_azuread/get_service_principal.py +108 -90
- pulumi_azuread/get_service_principals.py +60 -64
- pulumi_azuread/get_user.py +186 -118
- pulumi_azuread/get_users.py +96 -53
- pulumi_azuread/group.py +622 -464
- pulumi_azuread/group_member.py +56 -50
- pulumi_azuread/group_role_management_policy.py +544 -0
- pulumi_azuread/group_without_members.py +1610 -0
- pulumi_azuread/invitation.py +126 -120
- pulumi_azuread/named_location.py +90 -76
- pulumi_azuread/outputs.py +2844 -1308
- pulumi_azuread/privileged_access_group_assignment_schedule.py +695 -0
- pulumi_azuread/privileged_access_group_eligibility_schedule.py +695 -0
- pulumi_azuread/provider.py +292 -246
- pulumi_azuread/pulumi-plugin.json +2 -1
- pulumi_azuread/service_principal.py +400 -461
- pulumi_azuread/service_principal_certificate.py +230 -145
- pulumi_azuread/service_principal_claims_mapping_policy_assignment.py +53 -47
- pulumi_azuread/service_principal_delegated_permission_grant.py +146 -140
- pulumi_azuread/service_principal_password.py +156 -141
- pulumi_azuread/service_principal_token_signing_certificate.py +119 -124
- pulumi_azuread/synchronization_job.py +105 -111
- pulumi_azuread/synchronization_job_provision_on_demand.py +396 -0
- pulumi_azuread/synchronization_secret.py +64 -70
- pulumi_azuread/user.py +776 -730
- pulumi_azuread/user_flow_attribute.py +76 -70
- {pulumi_azuread-5.48.0a1706744699.dist-info → pulumi_azuread-6.8.0a1766208344.dist-info}/METADATA +21 -20
- pulumi_azuread-6.8.0a1766208344.dist-info/RECORD +87 -0
- {pulumi_azuread-5.48.0a1706744699.dist-info → pulumi_azuread-6.8.0a1766208344.dist-info}/WHEEL +1 -1
- pulumi_azuread-5.48.0a1706744699.dist-info/RECORD +0 -81
- {pulumi_azuread-5.48.0a1706744699.dist-info → pulumi_azuread-6.8.0a1766208344.dist-info}/top_level.txt +0 -0
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
# coding=utf-8
|
|
2
|
-
# *** WARNING: this file was generated by
|
|
2
|
+
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
3
|
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
|
|
5
|
-
import
|
|
5
|
+
import builtins as _builtins
|
|
6
6
|
import warnings
|
|
7
|
+
import sys
|
|
7
8
|
import pulumi
|
|
8
9
|
import pulumi.runtime
|
|
9
10
|
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
11
|
+
if sys.version_info >= (3, 11):
|
|
12
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
|
13
|
+
else:
|
|
14
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
10
15
|
from . import _utilities
|
|
11
16
|
|
|
12
17
|
__all__ = ['AppRoleAssignmentArgs', 'AppRoleAssignment']
|
|
@@ -14,73 +19,73 @@ __all__ = ['AppRoleAssignmentArgs', 'AppRoleAssignment']
|
|
|
14
19
|
@pulumi.input_type
|
|
15
20
|
class AppRoleAssignmentArgs:
|
|
16
21
|
def __init__(__self__, *,
|
|
17
|
-
app_role_id: pulumi.Input[str],
|
|
18
|
-
principal_object_id: pulumi.Input[str],
|
|
19
|
-
resource_object_id: pulumi.Input[str]):
|
|
22
|
+
app_role_id: pulumi.Input[_builtins.str],
|
|
23
|
+
principal_object_id: pulumi.Input[_builtins.str],
|
|
24
|
+
resource_object_id: pulumi.Input[_builtins.str]):
|
|
20
25
|
"""
|
|
21
26
|
The set of arguments for constructing a AppRoleAssignment resource.
|
|
22
|
-
:param pulumi.Input[str] app_role_id: The ID of the app role to be assigned, or the default role ID `00000000-0000-0000-0000-000000000000`. Changing this forces a new resource to be created.
|
|
23
|
-
:param pulumi.Input[str] principal_object_id: The object ID of the user, group or service principal to be assigned this app role. Supported object types are Users, Groups or Service Principals. Changing this forces a new resource to be created.
|
|
24
|
-
:param pulumi.Input[str] resource_object_id: The object ID of the service principal representing the resource. Changing this forces a new resource to be created.
|
|
27
|
+
:param pulumi.Input[_builtins.str] app_role_id: The ID of the app role to be assigned, or the default role ID `00000000-0000-0000-0000-000000000000`. Changing this forces a new resource to be created.
|
|
28
|
+
:param pulumi.Input[_builtins.str] principal_object_id: The object ID of the user, group or service principal to be assigned this app role. Supported object types are Users, Groups or Service Principals. Changing this forces a new resource to be created.
|
|
29
|
+
:param pulumi.Input[_builtins.str] resource_object_id: The object ID of the service principal representing the resource. Changing this forces a new resource to be created.
|
|
25
30
|
"""
|
|
26
31
|
pulumi.set(__self__, "app_role_id", app_role_id)
|
|
27
32
|
pulumi.set(__self__, "principal_object_id", principal_object_id)
|
|
28
33
|
pulumi.set(__self__, "resource_object_id", resource_object_id)
|
|
29
34
|
|
|
30
|
-
@property
|
|
35
|
+
@_builtins.property
|
|
31
36
|
@pulumi.getter(name="appRoleId")
|
|
32
|
-
def app_role_id(self) -> pulumi.Input[str]:
|
|
37
|
+
def app_role_id(self) -> pulumi.Input[_builtins.str]:
|
|
33
38
|
"""
|
|
34
39
|
The ID of the app role to be assigned, or the default role ID `00000000-0000-0000-0000-000000000000`. Changing this forces a new resource to be created.
|
|
35
40
|
"""
|
|
36
41
|
return pulumi.get(self, "app_role_id")
|
|
37
42
|
|
|
38
43
|
@app_role_id.setter
|
|
39
|
-
def app_role_id(self, value: pulumi.Input[str]):
|
|
44
|
+
def app_role_id(self, value: pulumi.Input[_builtins.str]):
|
|
40
45
|
pulumi.set(self, "app_role_id", value)
|
|
41
46
|
|
|
42
|
-
@property
|
|
47
|
+
@_builtins.property
|
|
43
48
|
@pulumi.getter(name="principalObjectId")
|
|
44
|
-
def principal_object_id(self) -> pulumi.Input[str]:
|
|
49
|
+
def principal_object_id(self) -> pulumi.Input[_builtins.str]:
|
|
45
50
|
"""
|
|
46
51
|
The object ID of the user, group or service principal to be assigned this app role. Supported object types are Users, Groups or Service Principals. Changing this forces a new resource to be created.
|
|
47
52
|
"""
|
|
48
53
|
return pulumi.get(self, "principal_object_id")
|
|
49
54
|
|
|
50
55
|
@principal_object_id.setter
|
|
51
|
-
def principal_object_id(self, value: pulumi.Input[str]):
|
|
56
|
+
def principal_object_id(self, value: pulumi.Input[_builtins.str]):
|
|
52
57
|
pulumi.set(self, "principal_object_id", value)
|
|
53
58
|
|
|
54
|
-
@property
|
|
59
|
+
@_builtins.property
|
|
55
60
|
@pulumi.getter(name="resourceObjectId")
|
|
56
|
-
def resource_object_id(self) -> pulumi.Input[str]:
|
|
61
|
+
def resource_object_id(self) -> pulumi.Input[_builtins.str]:
|
|
57
62
|
"""
|
|
58
63
|
The object ID of the service principal representing the resource. Changing this forces a new resource to be created.
|
|
59
64
|
"""
|
|
60
65
|
return pulumi.get(self, "resource_object_id")
|
|
61
66
|
|
|
62
67
|
@resource_object_id.setter
|
|
63
|
-
def resource_object_id(self, value: pulumi.Input[str]):
|
|
68
|
+
def resource_object_id(self, value: pulumi.Input[_builtins.str]):
|
|
64
69
|
pulumi.set(self, "resource_object_id", value)
|
|
65
70
|
|
|
66
71
|
|
|
67
72
|
@pulumi.input_type
|
|
68
73
|
class _AppRoleAssignmentState:
|
|
69
74
|
def __init__(__self__, *,
|
|
70
|
-
app_role_id: Optional[pulumi.Input[str]] = None,
|
|
71
|
-
principal_display_name: Optional[pulumi.Input[str]] = None,
|
|
72
|
-
principal_object_id: Optional[pulumi.Input[str]] = None,
|
|
73
|
-
principal_type: Optional[pulumi.Input[str]] = None,
|
|
74
|
-
resource_display_name: Optional[pulumi.Input[str]] = None,
|
|
75
|
-
resource_object_id: Optional[pulumi.Input[str]] = None):
|
|
75
|
+
app_role_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
76
|
+
principal_display_name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
77
|
+
principal_object_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
78
|
+
principal_type: Optional[pulumi.Input[_builtins.str]] = None,
|
|
79
|
+
resource_display_name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
80
|
+
resource_object_id: Optional[pulumi.Input[_builtins.str]] = None):
|
|
76
81
|
"""
|
|
77
82
|
Input properties used for looking up and filtering AppRoleAssignment resources.
|
|
78
|
-
:param pulumi.Input[str] app_role_id: The ID of the app role to be assigned, or the default role ID `00000000-0000-0000-0000-000000000000`. Changing this forces a new resource to be created.
|
|
79
|
-
:param pulumi.Input[str] principal_display_name: The display name of the principal to which the app role is assigned.
|
|
80
|
-
:param pulumi.Input[str] principal_object_id: The object ID of the user, group or service principal to be assigned this app role. Supported object types are Users, Groups or Service Principals. Changing this forces a new resource to be created.
|
|
81
|
-
:param pulumi.Input[str] principal_type: The object type of the principal to which the app role is assigned.
|
|
82
|
-
:param pulumi.Input[str] resource_display_name: The display name of the application representing the resource.
|
|
83
|
-
:param pulumi.Input[str] resource_object_id: The object ID of the service principal representing the resource. Changing this forces a new resource to be created.
|
|
83
|
+
:param pulumi.Input[_builtins.str] app_role_id: The ID of the app role to be assigned, or the default role ID `00000000-0000-0000-0000-000000000000`. Changing this forces a new resource to be created.
|
|
84
|
+
:param pulumi.Input[_builtins.str] principal_display_name: The display name of the principal to which the app role is assigned.
|
|
85
|
+
:param pulumi.Input[_builtins.str] principal_object_id: The object ID of the user, group or service principal to be assigned this app role. Supported object types are Users, Groups or Service Principals. Changing this forces a new resource to be created.
|
|
86
|
+
:param pulumi.Input[_builtins.str] principal_type: The object type of the principal to which the app role is assigned.
|
|
87
|
+
:param pulumi.Input[_builtins.str] resource_display_name: The display name of the application representing the resource.
|
|
88
|
+
:param pulumi.Input[_builtins.str] resource_object_id: The object ID of the service principal representing the resource. Changing this forces a new resource to be created.
|
|
84
89
|
"""
|
|
85
90
|
if app_role_id is not None:
|
|
86
91
|
pulumi.set(__self__, "app_role_id", app_role_id)
|
|
@@ -95,87 +100,88 @@ class _AppRoleAssignmentState:
|
|
|
95
100
|
if resource_object_id is not None:
|
|
96
101
|
pulumi.set(__self__, "resource_object_id", resource_object_id)
|
|
97
102
|
|
|
98
|
-
@property
|
|
103
|
+
@_builtins.property
|
|
99
104
|
@pulumi.getter(name="appRoleId")
|
|
100
|
-
def app_role_id(self) -> Optional[pulumi.Input[str]]:
|
|
105
|
+
def app_role_id(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
101
106
|
"""
|
|
102
107
|
The ID of the app role to be assigned, or the default role ID `00000000-0000-0000-0000-000000000000`. Changing this forces a new resource to be created.
|
|
103
108
|
"""
|
|
104
109
|
return pulumi.get(self, "app_role_id")
|
|
105
110
|
|
|
106
111
|
@app_role_id.setter
|
|
107
|
-
def app_role_id(self, value: Optional[pulumi.Input[str]]):
|
|
112
|
+
def app_role_id(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
108
113
|
pulumi.set(self, "app_role_id", value)
|
|
109
114
|
|
|
110
|
-
@property
|
|
115
|
+
@_builtins.property
|
|
111
116
|
@pulumi.getter(name="principalDisplayName")
|
|
112
|
-
def principal_display_name(self) -> Optional[pulumi.Input[str]]:
|
|
117
|
+
def principal_display_name(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
113
118
|
"""
|
|
114
119
|
The display name of the principal to which the app role is assigned.
|
|
115
120
|
"""
|
|
116
121
|
return pulumi.get(self, "principal_display_name")
|
|
117
122
|
|
|
118
123
|
@principal_display_name.setter
|
|
119
|
-
def principal_display_name(self, value: Optional[pulumi.Input[str]]):
|
|
124
|
+
def principal_display_name(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
120
125
|
pulumi.set(self, "principal_display_name", value)
|
|
121
126
|
|
|
122
|
-
@property
|
|
127
|
+
@_builtins.property
|
|
123
128
|
@pulumi.getter(name="principalObjectId")
|
|
124
|
-
def principal_object_id(self) -> Optional[pulumi.Input[str]]:
|
|
129
|
+
def principal_object_id(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
125
130
|
"""
|
|
126
131
|
The object ID of the user, group or service principal to be assigned this app role. Supported object types are Users, Groups or Service Principals. Changing this forces a new resource to be created.
|
|
127
132
|
"""
|
|
128
133
|
return pulumi.get(self, "principal_object_id")
|
|
129
134
|
|
|
130
135
|
@principal_object_id.setter
|
|
131
|
-
def principal_object_id(self, value: Optional[pulumi.Input[str]]):
|
|
136
|
+
def principal_object_id(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
132
137
|
pulumi.set(self, "principal_object_id", value)
|
|
133
138
|
|
|
134
|
-
@property
|
|
139
|
+
@_builtins.property
|
|
135
140
|
@pulumi.getter(name="principalType")
|
|
136
|
-
def principal_type(self) -> Optional[pulumi.Input[str]]:
|
|
141
|
+
def principal_type(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
137
142
|
"""
|
|
138
143
|
The object type of the principal to which the app role is assigned.
|
|
139
144
|
"""
|
|
140
145
|
return pulumi.get(self, "principal_type")
|
|
141
146
|
|
|
142
147
|
@principal_type.setter
|
|
143
|
-
def principal_type(self, value: Optional[pulumi.Input[str]]):
|
|
148
|
+
def principal_type(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
144
149
|
pulumi.set(self, "principal_type", value)
|
|
145
150
|
|
|
146
|
-
@property
|
|
151
|
+
@_builtins.property
|
|
147
152
|
@pulumi.getter(name="resourceDisplayName")
|
|
148
|
-
def resource_display_name(self) -> Optional[pulumi.Input[str]]:
|
|
153
|
+
def resource_display_name(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
149
154
|
"""
|
|
150
155
|
The display name of the application representing the resource.
|
|
151
156
|
"""
|
|
152
157
|
return pulumi.get(self, "resource_display_name")
|
|
153
158
|
|
|
154
159
|
@resource_display_name.setter
|
|
155
|
-
def resource_display_name(self, value: Optional[pulumi.Input[str]]):
|
|
160
|
+
def resource_display_name(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
156
161
|
pulumi.set(self, "resource_display_name", value)
|
|
157
162
|
|
|
158
|
-
@property
|
|
163
|
+
@_builtins.property
|
|
159
164
|
@pulumi.getter(name="resourceObjectId")
|
|
160
|
-
def resource_object_id(self) -> Optional[pulumi.Input[str]]:
|
|
165
|
+
def resource_object_id(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
161
166
|
"""
|
|
162
167
|
The object ID of the service principal representing the resource. Changing this forces a new resource to be created.
|
|
163
168
|
"""
|
|
164
169
|
return pulumi.get(self, "resource_object_id")
|
|
165
170
|
|
|
166
171
|
@resource_object_id.setter
|
|
167
|
-
def resource_object_id(self, value: Optional[pulumi.Input[str]]):
|
|
172
|
+
def resource_object_id(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
168
173
|
pulumi.set(self, "resource_object_id", value)
|
|
169
174
|
|
|
170
175
|
|
|
176
|
+
@pulumi.type_token("azuread:index/appRoleAssignment:AppRoleAssignment")
|
|
171
177
|
class AppRoleAssignment(pulumi.CustomResource):
|
|
172
178
|
@overload
|
|
173
179
|
def __init__(__self__,
|
|
174
180
|
resource_name: str,
|
|
175
181
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
176
|
-
app_role_id: Optional[pulumi.Input[str]] = None,
|
|
177
|
-
principal_object_id: Optional[pulumi.Input[str]] = None,
|
|
178
|
-
resource_object_id: Optional[pulumi.Input[str]] = None,
|
|
182
|
+
app_role_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
183
|
+
principal_object_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
184
|
+
resource_object_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
179
185
|
__props__=None):
|
|
180
186
|
"""
|
|
181
187
|
Manages an app role assignment for a group, user or service principal. Can be used to grant admin consent for application permissions.
|
|
@@ -198,25 +204,25 @@ class AppRoleAssignment(pulumi.CustomResource):
|
|
|
198
204
|
|
|
199
205
|
well_known = azuread.get_application_published_app_ids()
|
|
200
206
|
msgraph = azuread.ServicePrincipal("msgraph",
|
|
201
|
-
|
|
207
|
+
client_id=well_known.result["microsoftGraph"],
|
|
202
208
|
use_existing=True)
|
|
203
|
-
|
|
209
|
+
example = azuread.Application("example",
|
|
204
210
|
display_name="example",
|
|
205
|
-
required_resource_accesses=[
|
|
206
|
-
resource_app_id
|
|
207
|
-
resource_accesses
|
|
208
|
-
|
|
209
|
-
id
|
|
210
|
-
type
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
id
|
|
214
|
-
type
|
|
215
|
-
|
|
211
|
+
required_resource_accesses=[{
|
|
212
|
+
"resource_app_id": well_known.result["microsoftGraph"],
|
|
213
|
+
"resource_accesses": [
|
|
214
|
+
{
|
|
215
|
+
"id": msgraph.app_role_ids["User.Read.All"],
|
|
216
|
+
"type": "Role",
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
"id": msgraph.oauth2_permission_scope_ids["User.ReadWrite"],
|
|
220
|
+
"type": "Scope",
|
|
221
|
+
},
|
|
216
222
|
],
|
|
217
|
-
|
|
218
|
-
example_service_principal = azuread.ServicePrincipal("
|
|
219
|
-
example_app_role_assignment = azuread.AppRoleAssignment("
|
|
223
|
+
}])
|
|
224
|
+
example_service_principal = azuread.ServicePrincipal("example", client_id=example.client_id)
|
|
225
|
+
example_app_role_assignment = azuread.AppRoleAssignment("example",
|
|
220
226
|
app_role_id=msgraph.app_role_ids["User.Read.All"],
|
|
221
227
|
principal_object_id=example_service_principal.object_id,
|
|
222
228
|
resource_object_id=msgraph.object_id)
|
|
@@ -228,28 +234,28 @@ class AppRoleAssignment(pulumi.CustomResource):
|
|
|
228
234
|
import pulumi
|
|
229
235
|
import pulumi_azuread as azuread
|
|
230
236
|
|
|
231
|
-
|
|
237
|
+
internal = azuread.Application("internal",
|
|
232
238
|
display_name="internal",
|
|
233
|
-
app_roles=[
|
|
234
|
-
allowed_member_types
|
|
235
|
-
description
|
|
236
|
-
display_name
|
|
237
|
-
enabled
|
|
238
|
-
id
|
|
239
|
-
value
|
|
240
|
-
|
|
241
|
-
internal_service_principal = azuread.ServicePrincipal("
|
|
242
|
-
|
|
239
|
+
app_roles=[{
|
|
240
|
+
"allowed_member_types": ["Application"],
|
|
241
|
+
"description": "Apps can query the database",
|
|
242
|
+
"display_name": "Query",
|
|
243
|
+
"enabled": True,
|
|
244
|
+
"id": "00000000-0000-0000-0000-111111111111",
|
|
245
|
+
"value": "Query.All",
|
|
246
|
+
}])
|
|
247
|
+
internal_service_principal = azuread.ServicePrincipal("internal", client_id=internal.client_id)
|
|
248
|
+
example = azuread.Application("example",
|
|
243
249
|
display_name="example",
|
|
244
|
-
required_resource_accesses=[
|
|
245
|
-
resource_app_id
|
|
246
|
-
resource_accesses
|
|
247
|
-
id
|
|
248
|
-
type
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
example_service_principal = azuread.ServicePrincipal("
|
|
252
|
-
example_app_role_assignment = azuread.AppRoleAssignment("
|
|
250
|
+
required_resource_accesses=[{
|
|
251
|
+
"resource_app_id": internal.client_id,
|
|
252
|
+
"resource_accesses": [{
|
|
253
|
+
"id": internal_service_principal.app_role_ids["Query.All"],
|
|
254
|
+
"type": "Role",
|
|
255
|
+
}],
|
|
256
|
+
}])
|
|
257
|
+
example_service_principal = azuread.ServicePrincipal("example", client_id=example.client_id)
|
|
258
|
+
example_app_role_assignment = azuread.AppRoleAssignment("example",
|
|
253
259
|
app_role_id=internal_service_principal.app_role_ids["Query.All"],
|
|
254
260
|
principal_object_id=example_service_principal.object_id,
|
|
255
261
|
resource_object_id=internal_service_principal.object_id)
|
|
@@ -257,74 +263,21 @@ class AppRoleAssignment(pulumi.CustomResource):
|
|
|
257
263
|
|
|
258
264
|
*Assign a user and group to an internal application*
|
|
259
265
|
|
|
260
|
-
```python
|
|
261
|
-
import pulumi
|
|
262
|
-
import pulumi_azuread as azuread
|
|
263
|
-
|
|
264
|
-
example_domains = azuread.get_domains(only_initial=True)
|
|
265
|
-
internal_application = azuread.Application("internalApplication",
|
|
266
|
-
display_name="internal",
|
|
267
|
-
app_roles=[azuread.ApplicationAppRoleArgs(
|
|
268
|
-
allowed_member_types=[
|
|
269
|
-
"Application",
|
|
270
|
-
"User",
|
|
271
|
-
],
|
|
272
|
-
description="Admins can perform all task actions",
|
|
273
|
-
display_name="Admin",
|
|
274
|
-
enabled=True,
|
|
275
|
-
id="00000000-0000-0000-0000-222222222222",
|
|
276
|
-
value="Admin.All",
|
|
277
|
-
)])
|
|
278
|
-
internal_service_principal = azuread.ServicePrincipal("internalServicePrincipal", application_id=internal_application.application_id)
|
|
279
|
-
example_group = azuread.Group("exampleGroup",
|
|
280
|
-
display_name="example",
|
|
281
|
-
security_enabled=True)
|
|
282
|
-
example_app_role_assignment = azuread.AppRoleAssignment("exampleAppRoleAssignment",
|
|
283
|
-
app_role_id=internal_service_principal.app_role_ids["Admin.All"],
|
|
284
|
-
principal_object_id=example_group.object_id,
|
|
285
|
-
resource_object_id=internal_service_principal.object_id)
|
|
286
|
-
example_user = azuread.User("exampleUser",
|
|
287
|
-
display_name="D. Duck",
|
|
288
|
-
password="SecretP@sswd99!",
|
|
289
|
-
user_principal_name=f"d.duck@{example_domains.domains[0].domain_name}")
|
|
290
|
-
example_index_app_role_assignment_app_role_assignment = azuread.AppRoleAssignment("exampleIndex/appRoleAssignmentAppRoleAssignment",
|
|
291
|
-
app_role_id=internal_service_principal.app_role_ids["Admin.All"],
|
|
292
|
-
principal_object_id=example_user.object_id,
|
|
293
|
-
resource_object_id=internal_service_principal.object_id)
|
|
294
|
-
```
|
|
295
|
-
|
|
296
|
-
*Assign a group to the default app role for an internal application*
|
|
297
|
-
|
|
298
|
-
```python
|
|
299
|
-
import pulumi
|
|
300
|
-
import pulumi_azuread as azuread
|
|
301
|
-
|
|
302
|
-
internal_application = azuread.Application("internalApplication", display_name="internal")
|
|
303
|
-
internal_service_principal = azuread.ServicePrincipal("internalServicePrincipal", application_id=internal_application.application_id)
|
|
304
|
-
example_group = azuread.Group("exampleGroup",
|
|
305
|
-
display_name="example",
|
|
306
|
-
security_enabled=True)
|
|
307
|
-
example_app_role_assignment = azuread.AppRoleAssignment("exampleAppRoleAssignment",
|
|
308
|
-
app_role_id="00000000-0000-0000-0000-000000000000",
|
|
309
|
-
principal_object_id=example_group.object_id,
|
|
310
|
-
resource_object_id=internal_service_principal.object_id)
|
|
311
|
-
```
|
|
312
|
-
|
|
313
266
|
## Import
|
|
314
267
|
|
|
315
|
-
App role assignments can be imported using the object ID of the service principal representing the resource and the ID of the app role assignment (
|
|
268
|
+
App role assignments can be imported using the object ID of the service principal representing the resource and the ID of the app role assignment (note: _not_ the ID of the app role), e.g.
|
|
316
269
|
|
|
317
270
|
```sh
|
|
318
|
-
|
|
271
|
+
$ pulumi import azuread:index/appRoleAssignment:AppRoleAssignment example /servicePrincipals/00000000-0000-0000-0000-000000000000/appRoleAssignedTo/aaBBcDDeFG6h5JKLMN2PQrrssTTUUvWWxxxxxyyyzzz
|
|
319
272
|
```
|
|
320
273
|
|
|
321
|
-
|
|
274
|
+
-> This ID format is unique to Terraform and is composed of the Resource Service Principal Object ID and the ID of the App Role Assignment in the format `/servicePrincipals/{ResourcePrincipalID}/appRoleAssignedTo/{AppRoleAssignmentID}`.
|
|
322
275
|
|
|
323
276
|
:param str resource_name: The name of the resource.
|
|
324
277
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
325
|
-
:param pulumi.Input[str] app_role_id: The ID of the app role to be assigned, or the default role ID `00000000-0000-0000-0000-000000000000`. Changing this forces a new resource to be created.
|
|
326
|
-
:param pulumi.Input[str] principal_object_id: The object ID of the user, group or service principal to be assigned this app role. Supported object types are Users, Groups or Service Principals. Changing this forces a new resource to be created.
|
|
327
|
-
:param pulumi.Input[str] resource_object_id: The object ID of the service principal representing the resource. Changing this forces a new resource to be created.
|
|
278
|
+
:param pulumi.Input[_builtins.str] app_role_id: The ID of the app role to be assigned, or the default role ID `00000000-0000-0000-0000-000000000000`. Changing this forces a new resource to be created.
|
|
279
|
+
:param pulumi.Input[_builtins.str] principal_object_id: The object ID of the user, group or service principal to be assigned this app role. Supported object types are Users, Groups or Service Principals. Changing this forces a new resource to be created.
|
|
280
|
+
:param pulumi.Input[_builtins.str] resource_object_id: The object ID of the service principal representing the resource. Changing this forces a new resource to be created.
|
|
328
281
|
"""
|
|
329
282
|
...
|
|
330
283
|
@overload
|
|
@@ -353,25 +306,25 @@ class AppRoleAssignment(pulumi.CustomResource):
|
|
|
353
306
|
|
|
354
307
|
well_known = azuread.get_application_published_app_ids()
|
|
355
308
|
msgraph = azuread.ServicePrincipal("msgraph",
|
|
356
|
-
|
|
309
|
+
client_id=well_known.result["microsoftGraph"],
|
|
357
310
|
use_existing=True)
|
|
358
|
-
|
|
311
|
+
example = azuread.Application("example",
|
|
359
312
|
display_name="example",
|
|
360
|
-
required_resource_accesses=[
|
|
361
|
-
resource_app_id
|
|
362
|
-
resource_accesses
|
|
363
|
-
|
|
364
|
-
id
|
|
365
|
-
type
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
id
|
|
369
|
-
type
|
|
370
|
-
|
|
313
|
+
required_resource_accesses=[{
|
|
314
|
+
"resource_app_id": well_known.result["microsoftGraph"],
|
|
315
|
+
"resource_accesses": [
|
|
316
|
+
{
|
|
317
|
+
"id": msgraph.app_role_ids["User.Read.All"],
|
|
318
|
+
"type": "Role",
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
"id": msgraph.oauth2_permission_scope_ids["User.ReadWrite"],
|
|
322
|
+
"type": "Scope",
|
|
323
|
+
},
|
|
371
324
|
],
|
|
372
|
-
|
|
373
|
-
example_service_principal = azuread.ServicePrincipal("
|
|
374
|
-
example_app_role_assignment = azuread.AppRoleAssignment("
|
|
325
|
+
}])
|
|
326
|
+
example_service_principal = azuread.ServicePrincipal("example", client_id=example.client_id)
|
|
327
|
+
example_app_role_assignment = azuread.AppRoleAssignment("example",
|
|
375
328
|
app_role_id=msgraph.app_role_ids["User.Read.All"],
|
|
376
329
|
principal_object_id=example_service_principal.object_id,
|
|
377
330
|
resource_object_id=msgraph.object_id)
|
|
@@ -383,28 +336,28 @@ class AppRoleAssignment(pulumi.CustomResource):
|
|
|
383
336
|
import pulumi
|
|
384
337
|
import pulumi_azuread as azuread
|
|
385
338
|
|
|
386
|
-
|
|
339
|
+
internal = azuread.Application("internal",
|
|
387
340
|
display_name="internal",
|
|
388
|
-
app_roles=[
|
|
389
|
-
allowed_member_types
|
|
390
|
-
description
|
|
391
|
-
display_name
|
|
392
|
-
enabled
|
|
393
|
-
id
|
|
394
|
-
value
|
|
395
|
-
|
|
396
|
-
internal_service_principal = azuread.ServicePrincipal("
|
|
397
|
-
|
|
341
|
+
app_roles=[{
|
|
342
|
+
"allowed_member_types": ["Application"],
|
|
343
|
+
"description": "Apps can query the database",
|
|
344
|
+
"display_name": "Query",
|
|
345
|
+
"enabled": True,
|
|
346
|
+
"id": "00000000-0000-0000-0000-111111111111",
|
|
347
|
+
"value": "Query.All",
|
|
348
|
+
}])
|
|
349
|
+
internal_service_principal = azuread.ServicePrincipal("internal", client_id=internal.client_id)
|
|
350
|
+
example = azuread.Application("example",
|
|
398
351
|
display_name="example",
|
|
399
|
-
required_resource_accesses=[
|
|
400
|
-
resource_app_id
|
|
401
|
-
resource_accesses
|
|
402
|
-
id
|
|
403
|
-
type
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
example_service_principal = azuread.ServicePrincipal("
|
|
407
|
-
example_app_role_assignment = azuread.AppRoleAssignment("
|
|
352
|
+
required_resource_accesses=[{
|
|
353
|
+
"resource_app_id": internal.client_id,
|
|
354
|
+
"resource_accesses": [{
|
|
355
|
+
"id": internal_service_principal.app_role_ids["Query.All"],
|
|
356
|
+
"type": "Role",
|
|
357
|
+
}],
|
|
358
|
+
}])
|
|
359
|
+
example_service_principal = azuread.ServicePrincipal("example", client_id=example.client_id)
|
|
360
|
+
example_app_role_assignment = azuread.AppRoleAssignment("example",
|
|
408
361
|
app_role_id=internal_service_principal.app_role_ids["Query.All"],
|
|
409
362
|
principal_object_id=example_service_principal.object_id,
|
|
410
363
|
resource_object_id=internal_service_principal.object_id)
|
|
@@ -412,68 +365,15 @@ class AppRoleAssignment(pulumi.CustomResource):
|
|
|
412
365
|
|
|
413
366
|
*Assign a user and group to an internal application*
|
|
414
367
|
|
|
415
|
-
```python
|
|
416
|
-
import pulumi
|
|
417
|
-
import pulumi_azuread as azuread
|
|
418
|
-
|
|
419
|
-
example_domains = azuread.get_domains(only_initial=True)
|
|
420
|
-
internal_application = azuread.Application("internalApplication",
|
|
421
|
-
display_name="internal",
|
|
422
|
-
app_roles=[azuread.ApplicationAppRoleArgs(
|
|
423
|
-
allowed_member_types=[
|
|
424
|
-
"Application",
|
|
425
|
-
"User",
|
|
426
|
-
],
|
|
427
|
-
description="Admins can perform all task actions",
|
|
428
|
-
display_name="Admin",
|
|
429
|
-
enabled=True,
|
|
430
|
-
id="00000000-0000-0000-0000-222222222222",
|
|
431
|
-
value="Admin.All",
|
|
432
|
-
)])
|
|
433
|
-
internal_service_principal = azuread.ServicePrincipal("internalServicePrincipal", application_id=internal_application.application_id)
|
|
434
|
-
example_group = azuread.Group("exampleGroup",
|
|
435
|
-
display_name="example",
|
|
436
|
-
security_enabled=True)
|
|
437
|
-
example_app_role_assignment = azuread.AppRoleAssignment("exampleAppRoleAssignment",
|
|
438
|
-
app_role_id=internal_service_principal.app_role_ids["Admin.All"],
|
|
439
|
-
principal_object_id=example_group.object_id,
|
|
440
|
-
resource_object_id=internal_service_principal.object_id)
|
|
441
|
-
example_user = azuread.User("exampleUser",
|
|
442
|
-
display_name="D. Duck",
|
|
443
|
-
password="SecretP@sswd99!",
|
|
444
|
-
user_principal_name=f"d.duck@{example_domains.domains[0].domain_name}")
|
|
445
|
-
example_index_app_role_assignment_app_role_assignment = azuread.AppRoleAssignment("exampleIndex/appRoleAssignmentAppRoleAssignment",
|
|
446
|
-
app_role_id=internal_service_principal.app_role_ids["Admin.All"],
|
|
447
|
-
principal_object_id=example_user.object_id,
|
|
448
|
-
resource_object_id=internal_service_principal.object_id)
|
|
449
|
-
```
|
|
450
|
-
|
|
451
|
-
*Assign a group to the default app role for an internal application*
|
|
452
|
-
|
|
453
|
-
```python
|
|
454
|
-
import pulumi
|
|
455
|
-
import pulumi_azuread as azuread
|
|
456
|
-
|
|
457
|
-
internal_application = azuread.Application("internalApplication", display_name="internal")
|
|
458
|
-
internal_service_principal = azuread.ServicePrincipal("internalServicePrincipal", application_id=internal_application.application_id)
|
|
459
|
-
example_group = azuread.Group("exampleGroup",
|
|
460
|
-
display_name="example",
|
|
461
|
-
security_enabled=True)
|
|
462
|
-
example_app_role_assignment = azuread.AppRoleAssignment("exampleAppRoleAssignment",
|
|
463
|
-
app_role_id="00000000-0000-0000-0000-000000000000",
|
|
464
|
-
principal_object_id=example_group.object_id,
|
|
465
|
-
resource_object_id=internal_service_principal.object_id)
|
|
466
|
-
```
|
|
467
|
-
|
|
468
368
|
## Import
|
|
469
369
|
|
|
470
|
-
App role assignments can be imported using the object ID of the service principal representing the resource and the ID of the app role assignment (
|
|
370
|
+
App role assignments can be imported using the object ID of the service principal representing the resource and the ID of the app role assignment (note: _not_ the ID of the app role), e.g.
|
|
471
371
|
|
|
472
372
|
```sh
|
|
473
|
-
|
|
373
|
+
$ pulumi import azuread:index/appRoleAssignment:AppRoleAssignment example /servicePrincipals/00000000-0000-0000-0000-000000000000/appRoleAssignedTo/aaBBcDDeFG6h5JKLMN2PQrrssTTUUvWWxxxxxyyyzzz
|
|
474
374
|
```
|
|
475
375
|
|
|
476
|
-
|
|
376
|
+
-> This ID format is unique to Terraform and is composed of the Resource Service Principal Object ID and the ID of the App Role Assignment in the format `/servicePrincipals/{ResourcePrincipalID}/appRoleAssignedTo/{AppRoleAssignmentID}`.
|
|
477
377
|
|
|
478
378
|
:param str resource_name: The name of the resource.
|
|
479
379
|
:param AppRoleAssignmentArgs args: The arguments to use to populate this resource's properties.
|
|
@@ -490,9 +390,9 @@ class AppRoleAssignment(pulumi.CustomResource):
|
|
|
490
390
|
def _internal_init(__self__,
|
|
491
391
|
resource_name: str,
|
|
492
392
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
493
|
-
app_role_id: Optional[pulumi.Input[str]] = None,
|
|
494
|
-
principal_object_id: Optional[pulumi.Input[str]] = None,
|
|
495
|
-
resource_object_id: Optional[pulumi.Input[str]] = None,
|
|
393
|
+
app_role_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
394
|
+
principal_object_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
395
|
+
resource_object_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
496
396
|
__props__=None):
|
|
497
397
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
498
398
|
if not isinstance(opts, pulumi.ResourceOptions):
|
|
@@ -524,12 +424,12 @@ class AppRoleAssignment(pulumi.CustomResource):
|
|
|
524
424
|
def get(resource_name: str,
|
|
525
425
|
id: pulumi.Input[str],
|
|
526
426
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
527
|
-
app_role_id: Optional[pulumi.Input[str]] = None,
|
|
528
|
-
principal_display_name: Optional[pulumi.Input[str]] = None,
|
|
529
|
-
principal_object_id: Optional[pulumi.Input[str]] = None,
|
|
530
|
-
principal_type: Optional[pulumi.Input[str]] = None,
|
|
531
|
-
resource_display_name: Optional[pulumi.Input[str]] = None,
|
|
532
|
-
resource_object_id: Optional[pulumi.Input[str]] = None) -> 'AppRoleAssignment':
|
|
427
|
+
app_role_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
428
|
+
principal_display_name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
429
|
+
principal_object_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
430
|
+
principal_type: Optional[pulumi.Input[_builtins.str]] = None,
|
|
431
|
+
resource_display_name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
432
|
+
resource_object_id: Optional[pulumi.Input[_builtins.str]] = None) -> 'AppRoleAssignment':
|
|
533
433
|
"""
|
|
534
434
|
Get an existing AppRoleAssignment resource's state with the given name, id, and optional extra
|
|
535
435
|
properties used to qualify the lookup.
|
|
@@ -537,12 +437,12 @@ class AppRoleAssignment(pulumi.CustomResource):
|
|
|
537
437
|
:param str resource_name: The unique name of the resulting resource.
|
|
538
438
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
539
439
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
540
|
-
:param pulumi.Input[str] app_role_id: The ID of the app role to be assigned, or the default role ID `00000000-0000-0000-0000-000000000000`. Changing this forces a new resource to be created.
|
|
541
|
-
:param pulumi.Input[str] principal_display_name: The display name of the principal to which the app role is assigned.
|
|
542
|
-
:param pulumi.Input[str] principal_object_id: The object ID of the user, group or service principal to be assigned this app role. Supported object types are Users, Groups or Service Principals. Changing this forces a new resource to be created.
|
|
543
|
-
:param pulumi.Input[str] principal_type: The object type of the principal to which the app role is assigned.
|
|
544
|
-
:param pulumi.Input[str] resource_display_name: The display name of the application representing the resource.
|
|
545
|
-
:param pulumi.Input[str] resource_object_id: The object ID of the service principal representing the resource. Changing this forces a new resource to be created.
|
|
440
|
+
:param pulumi.Input[_builtins.str] app_role_id: The ID of the app role to be assigned, or the default role ID `00000000-0000-0000-0000-000000000000`. Changing this forces a new resource to be created.
|
|
441
|
+
:param pulumi.Input[_builtins.str] principal_display_name: The display name of the principal to which the app role is assigned.
|
|
442
|
+
:param pulumi.Input[_builtins.str] principal_object_id: The object ID of the user, group or service principal to be assigned this app role. Supported object types are Users, Groups or Service Principals. Changing this forces a new resource to be created.
|
|
443
|
+
:param pulumi.Input[_builtins.str] principal_type: The object type of the principal to which the app role is assigned.
|
|
444
|
+
:param pulumi.Input[_builtins.str] resource_display_name: The display name of the application representing the resource.
|
|
445
|
+
:param pulumi.Input[_builtins.str] resource_object_id: The object ID of the service principal representing the resource. Changing this forces a new resource to be created.
|
|
546
446
|
"""
|
|
547
447
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
548
448
|
|
|
@@ -556,49 +456,49 @@ class AppRoleAssignment(pulumi.CustomResource):
|
|
|
556
456
|
__props__.__dict__["resource_object_id"] = resource_object_id
|
|
557
457
|
return AppRoleAssignment(resource_name, opts=opts, __props__=__props__)
|
|
558
458
|
|
|
559
|
-
@property
|
|
459
|
+
@_builtins.property
|
|
560
460
|
@pulumi.getter(name="appRoleId")
|
|
561
|
-
def app_role_id(self) -> pulumi.Output[str]:
|
|
461
|
+
def app_role_id(self) -> pulumi.Output[_builtins.str]:
|
|
562
462
|
"""
|
|
563
463
|
The ID of the app role to be assigned, or the default role ID `00000000-0000-0000-0000-000000000000`. Changing this forces a new resource to be created.
|
|
564
464
|
"""
|
|
565
465
|
return pulumi.get(self, "app_role_id")
|
|
566
466
|
|
|
567
|
-
@property
|
|
467
|
+
@_builtins.property
|
|
568
468
|
@pulumi.getter(name="principalDisplayName")
|
|
569
|
-
def principal_display_name(self) -> pulumi.Output[str]:
|
|
469
|
+
def principal_display_name(self) -> pulumi.Output[_builtins.str]:
|
|
570
470
|
"""
|
|
571
471
|
The display name of the principal to which the app role is assigned.
|
|
572
472
|
"""
|
|
573
473
|
return pulumi.get(self, "principal_display_name")
|
|
574
474
|
|
|
575
|
-
@property
|
|
475
|
+
@_builtins.property
|
|
576
476
|
@pulumi.getter(name="principalObjectId")
|
|
577
|
-
def principal_object_id(self) -> pulumi.Output[str]:
|
|
477
|
+
def principal_object_id(self) -> pulumi.Output[_builtins.str]:
|
|
578
478
|
"""
|
|
579
479
|
The object ID of the user, group or service principal to be assigned this app role. Supported object types are Users, Groups or Service Principals. Changing this forces a new resource to be created.
|
|
580
480
|
"""
|
|
581
481
|
return pulumi.get(self, "principal_object_id")
|
|
582
482
|
|
|
583
|
-
@property
|
|
483
|
+
@_builtins.property
|
|
584
484
|
@pulumi.getter(name="principalType")
|
|
585
|
-
def principal_type(self) -> pulumi.Output[str]:
|
|
485
|
+
def principal_type(self) -> pulumi.Output[_builtins.str]:
|
|
586
486
|
"""
|
|
587
487
|
The object type of the principal to which the app role is assigned.
|
|
588
488
|
"""
|
|
589
489
|
return pulumi.get(self, "principal_type")
|
|
590
490
|
|
|
591
|
-
@property
|
|
491
|
+
@_builtins.property
|
|
592
492
|
@pulumi.getter(name="resourceDisplayName")
|
|
593
|
-
def resource_display_name(self) -> pulumi.Output[str]:
|
|
493
|
+
def resource_display_name(self) -> pulumi.Output[_builtins.str]:
|
|
594
494
|
"""
|
|
595
495
|
The display name of the application representing the resource.
|
|
596
496
|
"""
|
|
597
497
|
return pulumi.get(self, "resource_display_name")
|
|
598
498
|
|
|
599
|
-
@property
|
|
499
|
+
@_builtins.property
|
|
600
500
|
@pulumi.getter(name="resourceObjectId")
|
|
601
|
-
def resource_object_id(self) -> pulumi.Output[str]:
|
|
501
|
+
def resource_object_id(self) -> pulumi.Output[_builtins.str]:
|
|
602
502
|
"""
|
|
603
503
|
The object ID of the service principal representing the resource. Changing this forces a new resource to be created.
|
|
604
504
|
"""
|