azure-native-v2.solutions.JitRequest
Explore with Pulumi AI
Information about JIT request definition. Azure REST API version: 2021-07-01. Prior API version in Azure Native 1.x: 2019-07-01.
Other available API versions: 2023-12-01-preview.
Create JitRequest Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new JitRequest(name: string, args: JitRequestArgs, opts?: CustomResourceOptions);
@overload
def JitRequest(resource_name: str,
args: JitRequestArgs,
opts: Optional[ResourceOptions] = None)
@overload
def JitRequest(resource_name: str,
opts: Optional[ResourceOptions] = None,
application_resource_id: Optional[str] = None,
jit_authorization_policies: Optional[Sequence[JitAuthorizationPoliciesArgs]] = None,
jit_scheduling_policy: Optional[JitSchedulingPolicyArgs] = None,
resource_group_name: Optional[str] = None,
jit_request_name: Optional[str] = None,
location: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None)
func NewJitRequest(ctx *Context, name string, args JitRequestArgs, opts ...ResourceOption) (*JitRequest, error)
public JitRequest(string name, JitRequestArgs args, CustomResourceOptions? opts = null)
public JitRequest(String name, JitRequestArgs args)
public JitRequest(String name, JitRequestArgs args, CustomResourceOptions options)
type: azure-native:solutions:JitRequest
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name
This property is required. string - The unique name of the resource.
- args
This property is required. JitRequestArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name
This property is required. str - The unique name of the resource.
- args
This property is required. JitRequestArgs - The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name
This property is required. string - The unique name of the resource.
- args
This property is required. JitRequestArgs - The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name
This property is required. string - The unique name of the resource.
- args
This property is required. JitRequestArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name
This property is required. String - The unique name of the resource.
- args
This property is required. JitRequestArgs - The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var jitRequestResource = new AzureNative.Solutions.JitRequest("jitRequestResource", new()
{
ApplicationResourceId = "string",
JitAuthorizationPolicies = new[]
{
{
{ "principalId", "string" },
{ "roleDefinitionId", "string" },
},
},
JitSchedulingPolicy =
{
{ "duration", "string" },
{ "startTime", "string" },
{ "type", "string" },
},
ResourceGroupName = "string",
JitRequestName = "string",
Location = "string",
Tags =
{
{ "string", "string" },
},
});
example, err := solutions.NewJitRequest(ctx, "jitRequestResource", &solutions.JitRequestArgs{
ApplicationResourceId: "string",
JitAuthorizationPolicies: []map[string]interface{}{
map[string]interface{}{
"principalId": "string",
"roleDefinitionId": "string",
},
},
JitSchedulingPolicy: map[string]interface{}{
"duration": "string",
"startTime": "string",
"type": "string",
},
ResourceGroupName: "string",
JitRequestName: "string",
Location: "string",
Tags: map[string]interface{}{
"string": "string",
},
})
var jitRequestResource = new JitRequest("jitRequestResource", JitRequestArgs.builder()
.applicationResourceId("string")
.jitAuthorizationPolicies(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.jitSchedulingPolicy(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.resourceGroupName("string")
.jitRequestName("string")
.location("string")
.tags(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.build());
jit_request_resource = azure_native.solutions.JitRequest("jitRequestResource",
application_resource_id=string,
jit_authorization_policies=[{
principalId: string,
roleDefinitionId: string,
}],
jit_scheduling_policy={
duration: string,
startTime: string,
type: string,
},
resource_group_name=string,
jit_request_name=string,
location=string,
tags={
string: string,
})
const jitRequestResource = new azure_native.solutions.JitRequest("jitRequestResource", {
applicationResourceId: "string",
jitAuthorizationPolicies: [{
principalId: "string",
roleDefinitionId: "string",
}],
jitSchedulingPolicy: {
duration: "string",
startTime: "string",
type: "string",
},
resourceGroupName: "string",
jitRequestName: "string",
location: "string",
tags: {
string: "string",
},
});
type: azure-native:solutions:JitRequest
properties:
applicationResourceId: string
jitAuthorizationPolicies:
- principalId: string
roleDefinitionId: string
jitRequestName: string
jitSchedulingPolicy:
duration: string
startTime: string
type: string
location: string
resourceGroupName: string
tags:
string: string
JitRequest Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The JitRequest resource accepts the following input properties:
- Application
Resource Id This property is required. string - The parent application id.
This property is required. List<Pulumi.Azure Native. Solutions. Inputs. Jit Authorization Policies> - The JIT authorization policies.
- Jit
Scheduling Policy This property is required. Pulumi.Azure Native. Solutions. Inputs. Jit Scheduling Policy - The JIT request properties.
- Resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group. The name is case insensitive.
- Jit
Request Name Changes to this property will trigger replacement.
- The name of the JIT request.
- Location string
- Resource location
- Dictionary<string, string>
- Resource tags
- Application
Resource Id This property is required. string - The parent application id.
This property is required. []JitAuthorization Policies Args - The JIT authorization policies.
- Jit
Scheduling Policy This property is required. JitScheduling Policy Args - The JIT request properties.
- Resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group. The name is case insensitive.
- Jit
Request Name Changes to this property will trigger replacement.
- The name of the JIT request.
- Location string
- Resource location
- map[string]string
- Resource tags
- application
Resource Id This property is required. String - The parent application id.
This property is required. List<JitAuthorization Policies> - The JIT authorization policies.
- jit
Scheduling Policy This property is required. JitScheduling Policy - The JIT request properties.
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group. The name is case insensitive.
- jit
Request Name Changes to this property will trigger replacement.
- The name of the JIT request.
- location String
- Resource location
- Map<String,String>
- Resource tags
- application
Resource Id This property is required. string - The parent application id.
This property is required. JitAuthorization Policies[] - The JIT authorization policies.
- jit
Scheduling Policy This property is required. JitScheduling Policy - The JIT request properties.
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group. The name is case insensitive.
- jit
Request Name Changes to this property will trigger replacement.
- The name of the JIT request.
- location string
- Resource location
- {[key: string]: string}
- Resource tags
- application_
resource_ id This property is required. str - The parent application id.
This property is required. Sequence[JitAuthorization Policies Args] - The JIT authorization policies.
- jit_
scheduling_ policy This property is required. JitScheduling Policy Args - The JIT request properties.
- resource_
group_ name This property is required. Changes to this property will trigger replacement.
- The name of the resource group. The name is case insensitive.
- jit_
request_ name Changes to this property will trigger replacement.
- The name of the JIT request.
- location str
- Resource location
- Mapping[str, str]
- Resource tags
- application
Resource Id This property is required. String - The parent application id.
This property is required. List<Property Map>- The JIT authorization policies.
- jit
Scheduling Policy This property is required. Property Map - The JIT request properties.
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group. The name is case insensitive.
- jit
Request Name Changes to this property will trigger replacement.
- The name of the JIT request.
- location String
- Resource location
- Map<String>
- Resource tags
Outputs
All input properties are implicitly available as output properties. Additionally, the JitRequest resource produces the following output properties:
- Created
By Pulumi.Azure Native. Solutions. Outputs. Application Client Details Response - The client entity that created the JIT request.
- Id string
- The provider-assigned unique ID for this managed resource.
- Jit
Request stringState - The JIT request state.
- Name string
- Resource name
- Provisioning
State string - The JIT request provisioning state.
- Publisher
Tenant stringId - The publisher tenant id.
- System
Data Pulumi.Azure Native. Solutions. Outputs. System Data Response - Metadata pertaining to creation and last modification of the resource.
- Type string
- Resource type
- Updated
By Pulumi.Azure Native. Solutions. Outputs. Application Client Details Response - The client entity that last updated the JIT request.
- Created
By ApplicationClient Details Response - The client entity that created the JIT request.
- Id string
- The provider-assigned unique ID for this managed resource.
- Jit
Request stringState - The JIT request state.
- Name string
- Resource name
- Provisioning
State string - The JIT request provisioning state.
- Publisher
Tenant stringId - The publisher tenant id.
- System
Data SystemData Response - Metadata pertaining to creation and last modification of the resource.
- Type string
- Resource type
- Updated
By ApplicationClient Details Response - The client entity that last updated the JIT request.
- created
By ApplicationClient Details Response - The client entity that created the JIT request.
- id String
- The provider-assigned unique ID for this managed resource.
- jit
Request StringState - The JIT request state.
- name String
- Resource name
- provisioning
State String - The JIT request provisioning state.
- publisher
Tenant StringId - The publisher tenant id.
- system
Data SystemData Response - Metadata pertaining to creation and last modification of the resource.
- type String
- Resource type
- updated
By ApplicationClient Details Response - The client entity that last updated the JIT request.
- created
By ApplicationClient Details Response - The client entity that created the JIT request.
- id string
- The provider-assigned unique ID for this managed resource.
- jit
Request stringState - The JIT request state.
- name string
- Resource name
- provisioning
State string - The JIT request provisioning state.
- publisher
Tenant stringId - The publisher tenant id.
- system
Data SystemData Response - Metadata pertaining to creation and last modification of the resource.
- type string
- Resource type
- updated
By ApplicationClient Details Response - The client entity that last updated the JIT request.
- created_
by ApplicationClient Details Response - The client entity that created the JIT request.
- id str
- The provider-assigned unique ID for this managed resource.
- jit_
request_ strstate - The JIT request state.
- name str
- Resource name
- provisioning_
state str - The JIT request provisioning state.
- publisher_
tenant_ strid - The publisher tenant id.
- system_
data SystemData Response - Metadata pertaining to creation and last modification of the resource.
- type str
- Resource type
- updated_
by ApplicationClient Details Response - The client entity that last updated the JIT request.
- created
By Property Map - The client entity that created the JIT request.
- id String
- The provider-assigned unique ID for this managed resource.
- jit
Request StringState - The JIT request state.
- name String
- Resource name
- provisioning
State String - The JIT request provisioning state.
- publisher
Tenant StringId - The publisher tenant id.
- system
Data Property Map - Metadata pertaining to creation and last modification of the resource.
- type String
- Resource type
- updated
By Property Map - The client entity that last updated the JIT request.
Supporting Types
ApplicationClientDetailsResponse, ApplicationClientDetailsResponseArgs
- Application
Id string - The client application Id.
- Oid string
- The client Oid.
- Puid string
- The client Puid
- Application
Id string - The client application Id.
- Oid string
- The client Oid.
- Puid string
- The client Puid
- application
Id String - The client application Id.
- oid String
- The client Oid.
- puid String
- The client Puid
- application
Id string - The client application Id.
- oid string
- The client Oid.
- puid string
- The client Puid
- application_
id str - The client application Id.
- oid str
- The client Oid.
- puid str
- The client Puid
- application
Id String - The client application Id.
- oid String
- The client Oid.
- puid String
- The client Puid
JitAuthorizationPolicies, JitAuthorizationPoliciesArgs
- Principal
Id This property is required. string - The the principal id that will be granted JIT access.
- Role
Definition Id This property is required. string - The role definition id that will be granted to the Principal.
- Principal
Id This property is required. string - The the principal id that will be granted JIT access.
- Role
Definition Id This property is required. string - The role definition id that will be granted to the Principal.
- principal
Id This property is required. String - The the principal id that will be granted JIT access.
- role
Definition Id This property is required. String - The role definition id that will be granted to the Principal.
- principal
Id This property is required. string - The the principal id that will be granted JIT access.
- role
Definition Id This property is required. string - The role definition id that will be granted to the Principal.
- principal_
id This property is required. str - The the principal id that will be granted JIT access.
- role_
definition_ id This property is required. str - The role definition id that will be granted to the Principal.
- principal
Id This property is required. String - The the principal id that will be granted JIT access.
- role
Definition Id This property is required. String - The role definition id that will be granted to the Principal.
JitAuthorizationPoliciesResponse, JitAuthorizationPoliciesResponseArgs
- Principal
Id This property is required. string - The the principal id that will be granted JIT access.
- Role
Definition Id This property is required. string - The role definition id that will be granted to the Principal.
- Principal
Id This property is required. string - The the principal id that will be granted JIT access.
- Role
Definition Id This property is required. string - The role definition id that will be granted to the Principal.
- principal
Id This property is required. String - The the principal id that will be granted JIT access.
- role
Definition Id This property is required. String - The role definition id that will be granted to the Principal.
- principal
Id This property is required. string - The the principal id that will be granted JIT access.
- role
Definition Id This property is required. string - The role definition id that will be granted to the Principal.
- principal_
id This property is required. str - The the principal id that will be granted JIT access.
- role_
definition_ id This property is required. str - The role definition id that will be granted to the Principal.
- principal
Id This property is required. String - The the principal id that will be granted JIT access.
- role
Definition Id This property is required. String - The role definition id that will be granted to the Principal.
JitSchedulingPolicy, JitSchedulingPolicyArgs
- Duration
This property is required. string - Start
Time This property is required. string - The start time of the request.
- Type
This property is required. string | Pulumi.Azure Native. Solutions. Jit Scheduling Type - The type of JIT schedule.
- Duration
This property is required. string - Start
Time This property is required. string - The start time of the request.
- Type
This property is required. string | JitScheduling Type - The type of JIT schedule.
- duration
This property is required. String - start
Time This property is required. String - The start time of the request.
- type
This property is required. String | JitScheduling Type - The type of JIT schedule.
- duration
This property is required. string - start
Time This property is required. string - The start time of the request.
- type
This property is required. string | JitScheduling Type - The type of JIT schedule.
- duration
This property is required. str - start_
time This property is required. str - The start time of the request.
- type
This property is required. str | JitScheduling Type - The type of JIT schedule.
- duration
This property is required. String - start
Time This property is required. String - The start time of the request.
- type
This property is required. String | "NotSpecified" | "Once" | "Recurring" - The type of JIT schedule.
JitSchedulingPolicyResponse, JitSchedulingPolicyResponseArgs
- duration
This property is required. str - start_
time This property is required. str - The start time of the request.
- type
This property is required. str - The type of JIT schedule.
JitSchedulingType, JitSchedulingTypeArgs
- Not
Specified - NotSpecified
- Once
- Once
- Recurring
- Recurring
- Jit
Scheduling Type Not Specified - NotSpecified
- Jit
Scheduling Type Once - Once
- Jit
Scheduling Type Recurring - Recurring
- Not
Specified - NotSpecified
- Once
- Once
- Recurring
- Recurring
- Not
Specified - NotSpecified
- Once
- Once
- Recurring
- Recurring
- NOT_SPECIFIED
- NotSpecified
- ONCE
- Once
- RECURRING
- Recurring
- "Not
Specified" - NotSpecified
- "Once"
- Once
- "Recurring"
- Recurring
SystemDataResponse, SystemDataResponseArgs
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The timestamp of resource last modification (UTC)
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified stringBy Type - The type of identity that last modified the resource.
- created_
at str - The timestamp of resource creation (UTC).
- created_
by str - The identity that created the resource.
- created_
by_ strtype - The type of identity that created the resource.
- last_
modified_ strat - The timestamp of resource last modification (UTC)
- last_
modified_ strby - The identity that last modified the resource.
- last_
modified_ strby_ type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:solutions:JitRequest myJitRequest /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/jitRequests/{jitRequestName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- azure-native-v2 pulumi/pulumi-azure-native
- License
- Apache-2.0