okta.Review
Manages reassignment of review.
This resource allows you to reassign an already existing review.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as okta from "@pulumi/okta";
const test = new okta.Review("test", {
campaignId: "icizigd86iM9sOcbN1d6",
reviewerId: "00unli90kor62oF5Z1d7",
reviewIds: ["icrztblxbBFiVKepb1d6"],
reviewerLevel: "FIRST",
note: "John Smith is on leave for this month. His manager Tim will be the reviewer instead.",
});
import pulumi
import pulumi_okta as okta
test = okta.Review("test",
campaign_id="icizigd86iM9sOcbN1d6",
reviewer_id="00unli90kor62oF5Z1d7",
review_ids=["icrztblxbBFiVKepb1d6"],
reviewer_level="FIRST",
note="John Smith is on leave for this month. His manager Tim will be the reviewer instead.")
package main
import (
"github.com/pulumi/pulumi-okta/sdk/v6/go/okta"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := okta.NewReview(ctx, "test", &okta.ReviewArgs{
CampaignId: pulumi.String("icizigd86iM9sOcbN1d6"),
ReviewerId: pulumi.String("00unli90kor62oF5Z1d7"),
ReviewIds: pulumi.StringArray{
pulumi.String("icrztblxbBFiVKepb1d6"),
},
ReviewerLevel: pulumi.String("FIRST"),
Note: pulumi.String("John Smith is on leave for this month. His manager Tim will be the reviewer instead."),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Okta = Pulumi.Okta;
return await Deployment.RunAsync(() =>
{
var test = new Okta.Review("test", new()
{
CampaignId = "icizigd86iM9sOcbN1d6",
ReviewerId = "00unli90kor62oF5Z1d7",
ReviewIds = new[]
{
"icrztblxbBFiVKepb1d6",
},
ReviewerLevel = "FIRST",
Note = "John Smith is on leave for this month. His manager Tim will be the reviewer instead.",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.okta.Review;
import com.pulumi.okta.ReviewArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var test = new Review("test", ReviewArgs.builder()
.campaignId("icizigd86iM9sOcbN1d6")
.reviewerId("00unli90kor62oF5Z1d7")
.reviewIds("icrztblxbBFiVKepb1d6")
.reviewerLevel("FIRST")
.note("John Smith is on leave for this month. His manager Tim will be the reviewer instead.")
.build());
}
}
resources:
test:
type: okta:Review
properties:
campaignId: icizigd86iM9sOcbN1d6
reviewerId: 00unli90kor62oF5Z1d7
reviewIds:
- icrztblxbBFiVKepb1d6
reviewerLevel: FIRST
note: John Smith is on leave for this month. His manager Tim will be the reviewer instead.
Create Review Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Review(name: string, args: ReviewArgs, opts?: CustomResourceOptions);
@overload
def Review(resource_name: str,
args: ReviewArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Review(resource_name: str,
opts: Optional[ResourceOptions] = None,
campaign_id: Optional[str] = None,
note: Optional[str] = None,
review_ids: Optional[Sequence[str]] = None,
reviewer_id: Optional[str] = None,
reviewer_level: Optional[str] = None)
func NewReview(ctx *Context, name string, args ReviewArgs, opts ...ResourceOption) (*Review, error)
public Review(string name, ReviewArgs args, CustomResourceOptions? opts = null)
public Review(String name, ReviewArgs args)
public Review(String name, ReviewArgs args, CustomResourceOptions options)
type: okta:Review
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ReviewArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ReviewArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ReviewArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ReviewArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ReviewArgs
- 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 reviewResource = new Okta.Review("reviewResource", new()
{
CampaignId = "string",
Note = "string",
ReviewIds = new[]
{
"string",
},
ReviewerId = "string",
ReviewerLevel = "string",
});
example, err := okta.NewReview(ctx, "reviewResource", &okta.ReviewArgs{
CampaignId: pulumi.String("string"),
Note: pulumi.String("string"),
ReviewIds: pulumi.StringArray{
pulumi.String("string"),
},
ReviewerId: pulumi.String("string"),
ReviewerLevel: pulumi.String("string"),
})
var reviewResource = new Review("reviewResource", ReviewArgs.builder()
.campaignId("string")
.note("string")
.reviewIds("string")
.reviewerId("string")
.reviewerLevel("string")
.build());
review_resource = okta.Review("reviewResource",
campaign_id="string",
note="string",
review_ids=["string"],
reviewer_id="string",
reviewer_level="string")
const reviewResource = new okta.Review("reviewResource", {
campaignId: "string",
note: "string",
reviewIds: ["string"],
reviewerId: "string",
reviewerLevel: "string",
});
type: okta:Review
properties:
campaignId: string
note: string
reviewIds:
- string
reviewerId: string
reviewerLevel: string
Review 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 Review resource accepts the following input properties:
- Campaign
Id string - The id of the campaign.
- Note string
- A note to justify the reassignment decision for the specified review.
- Review
Ids List<string> - A list of reviews (review id values) that are reassigned to the new reviewer.
- Reviewer
Id string - The Okta user id of the new reviewer.
- Reviewer
Level string - Identifies the reviewer level of each reviews during access certification. Applicable for multi level campaigns only.
- Campaign
Id string - The id of the campaign.
- Note string
- A note to justify the reassignment decision for the specified review.
- Review
Ids []string - A list of reviews (review id values) that are reassigned to the new reviewer.
- Reviewer
Id string - The Okta user id of the new reviewer.
- Reviewer
Level string - Identifies the reviewer level of each reviews during access certification. Applicable for multi level campaigns only.
- campaign
Id String - The id of the campaign.
- note String
- A note to justify the reassignment decision for the specified review.
- review
Ids List<String> - A list of reviews (review id values) that are reassigned to the new reviewer.
- reviewer
Id String - The Okta user id of the new reviewer.
- reviewer
Level String - Identifies the reviewer level of each reviews during access certification. Applicable for multi level campaigns only.
- campaign
Id string - The id of the campaign.
- note string
- A note to justify the reassignment decision for the specified review.
- review
Ids string[] - A list of reviews (review id values) that are reassigned to the new reviewer.
- reviewer
Id string - The Okta user id of the new reviewer.
- reviewer
Level string - Identifies the reviewer level of each reviews during access certification. Applicable for multi level campaigns only.
- campaign_
id str - The id of the campaign.
- note str
- A note to justify the reassignment decision for the specified review.
- review_
ids Sequence[str] - A list of reviews (review id values) that are reassigned to the new reviewer.
- reviewer_
id str - The Okta user id of the new reviewer.
- reviewer_
level str - Identifies the reviewer level of each reviews during access certification. Applicable for multi level campaigns only.
- campaign
Id String - The id of the campaign.
- note String
- A note to justify the reassignment decision for the specified review.
- review
Ids List<String> - A list of reviews (review id values) that are reassigned to the new reviewer.
- reviewer
Id String - The Okta user id of the new reviewer.
- reviewer
Level String - Identifies the reviewer level of each reviews during access certification. Applicable for multi level campaigns only.
Outputs
All input properties are implicitly available as output properties. Additionally, the Review resource produces the following output properties:
- Created string
- The ISO 8601 formatted date and time when the resource was created
- Created
By string - The id of user who created the resource.
- Decision string
- The decision of the reviewer.
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Updated string - The ISO 8601 formatted date and time when the object was last updated.
- Last
Updated stringBy - The id of user who last updated the object.
- Resource
Id string - Reviewer
Type string - The type of reviewer to which the review is assigned.
- Created string
- The ISO 8601 formatted date and time when the resource was created
- Created
By string - The id of user who created the resource.
- Decision string
- The decision of the reviewer.
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Updated string - The ISO 8601 formatted date and time when the object was last updated.
- Last
Updated stringBy - The id of user who last updated the object.
- Resource
Id string - Reviewer
Type string - The type of reviewer to which the review is assigned.
- created String
- The ISO 8601 formatted date and time when the resource was created
- created
By String - The id of user who created the resource.
- decision String
- The decision of the reviewer.
- id String
- The provider-assigned unique ID for this managed resource.
- last
Updated String - The ISO 8601 formatted date and time when the object was last updated.
- last
Updated StringBy - The id of user who last updated the object.
- resource
Id String - reviewer
Type String - The type of reviewer to which the review is assigned.
- created string
- The ISO 8601 formatted date and time when the resource was created
- created
By string - The id of user who created the resource.
- decision string
- The decision of the reviewer.
- id string
- The provider-assigned unique ID for this managed resource.
- last
Updated string - The ISO 8601 formatted date and time when the object was last updated.
- last
Updated stringBy - The id of user who last updated the object.
- resource
Id string - reviewer
Type string - The type of reviewer to which the review is assigned.
- created str
- The ISO 8601 formatted date and time when the resource was created
- created_
by str - The id of user who created the resource.
- decision str
- The decision of the reviewer.
- id str
- The provider-assigned unique ID for this managed resource.
- last_
updated str - The ISO 8601 formatted date and time when the object was last updated.
- last_
updated_ strby - The id of user who last updated the object.
- resource_
id str - reviewer_
type str - The type of reviewer to which the review is assigned.
- created String
- The ISO 8601 formatted date and time when the resource was created
- created
By String - The id of user who created the resource.
- decision String
- The decision of the reviewer.
- id String
- The provider-assigned unique ID for this managed resource.
- last
Updated String - The ISO 8601 formatted date and time when the object was last updated.
- last
Updated StringBy - The id of user who last updated the object.
- resource
Id String - reviewer
Type String - The type of reviewer to which the review is assigned.
Look up Existing Review Resource
Get an existing Review resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ReviewState, opts?: CustomResourceOptions): Review
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
campaign_id: Optional[str] = None,
created: Optional[str] = None,
created_by: Optional[str] = None,
decision: Optional[str] = None,
last_updated: Optional[str] = None,
last_updated_by: Optional[str] = None,
note: Optional[str] = None,
resource_id: Optional[str] = None,
review_ids: Optional[Sequence[str]] = None,
reviewer_id: Optional[str] = None,
reviewer_level: Optional[str] = None,
reviewer_type: Optional[str] = None) -> Review
func GetReview(ctx *Context, name string, id IDInput, state *ReviewState, opts ...ResourceOption) (*Review, error)
public static Review Get(string name, Input<string> id, ReviewState? state, CustomResourceOptions? opts = null)
public static Review get(String name, Output<String> id, ReviewState state, CustomResourceOptions options)
resources: _: type: okta:Review get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Campaign
Id string - The id of the campaign.
- Created string
- The ISO 8601 formatted date and time when the resource was created
- Created
By string - The id of user who created the resource.
- Decision string
- The decision of the reviewer.
- Last
Updated string - The ISO 8601 formatted date and time when the object was last updated.
- Last
Updated stringBy - The id of user who last updated the object.
- Note string
- A note to justify the reassignment decision for the specified review.
- Resource
Id string - Review
Ids List<string> - A list of reviews (review id values) that are reassigned to the new reviewer.
- Reviewer
Id string - The Okta user id of the new reviewer.
- Reviewer
Level string - Identifies the reviewer level of each reviews during access certification. Applicable for multi level campaigns only.
- Reviewer
Type string - The type of reviewer to which the review is assigned.
- Campaign
Id string - The id of the campaign.
- Created string
- The ISO 8601 formatted date and time when the resource was created
- Created
By string - The id of user who created the resource.
- Decision string
- The decision of the reviewer.
- Last
Updated string - The ISO 8601 formatted date and time when the object was last updated.
- Last
Updated stringBy - The id of user who last updated the object.
- Note string
- A note to justify the reassignment decision for the specified review.
- Resource
Id string - Review
Ids []string - A list of reviews (review id values) that are reassigned to the new reviewer.
- Reviewer
Id string - The Okta user id of the new reviewer.
- Reviewer
Level string - Identifies the reviewer level of each reviews during access certification. Applicable for multi level campaigns only.
- Reviewer
Type string - The type of reviewer to which the review is assigned.
- campaign
Id String - The id of the campaign.
- created String
- The ISO 8601 formatted date and time when the resource was created
- created
By String - The id of user who created the resource.
- decision String
- The decision of the reviewer.
- last
Updated String - The ISO 8601 formatted date and time when the object was last updated.
- last
Updated StringBy - The id of user who last updated the object.
- note String
- A note to justify the reassignment decision for the specified review.
- resource
Id String - review
Ids List<String> - A list of reviews (review id values) that are reassigned to the new reviewer.
- reviewer
Id String - The Okta user id of the new reviewer.
- reviewer
Level String - Identifies the reviewer level of each reviews during access certification. Applicable for multi level campaigns only.
- reviewer
Type String - The type of reviewer to which the review is assigned.
- campaign
Id string - The id of the campaign.
- created string
- The ISO 8601 formatted date and time when the resource was created
- created
By string - The id of user who created the resource.
- decision string
- The decision of the reviewer.
- last
Updated string - The ISO 8601 formatted date and time when the object was last updated.
- last
Updated stringBy - The id of user who last updated the object.
- note string
- A note to justify the reassignment decision for the specified review.
- resource
Id string - review
Ids string[] - A list of reviews (review id values) that are reassigned to the new reviewer.
- reviewer
Id string - The Okta user id of the new reviewer.
- reviewer
Level string - Identifies the reviewer level of each reviews during access certification. Applicable for multi level campaigns only.
- reviewer
Type string - The type of reviewer to which the review is assigned.
- campaign_
id str - The id of the campaign.
- created str
- The ISO 8601 formatted date and time when the resource was created
- created_
by str - The id of user who created the resource.
- decision str
- The decision of the reviewer.
- last_
updated str - The ISO 8601 formatted date and time when the object was last updated.
- last_
updated_ strby - The id of user who last updated the object.
- note str
- A note to justify the reassignment decision for the specified review.
- resource_
id str - review_
ids Sequence[str] - A list of reviews (review id values) that are reassigned to the new reviewer.
- reviewer_
id str - The Okta user id of the new reviewer.
- reviewer_
level str - Identifies the reviewer level of each reviews during access certification. Applicable for multi level campaigns only.
- reviewer_
type str - The type of reviewer to which the review is assigned.
- campaign
Id String - The id of the campaign.
- created String
- The ISO 8601 formatted date and time when the resource was created
- created
By String - The id of user who created the resource.
- decision String
- The decision of the reviewer.
- last
Updated String - The ISO 8601 formatted date and time when the object was last updated.
- last
Updated StringBy - The id of user who last updated the object.
- note String
- A note to justify the reassignment decision for the specified review.
- resource
Id String - review
Ids List<String> - A list of reviews (review id values) that are reassigned to the new reviewer.
- reviewer
Id String - The Okta user id of the new reviewer.
- reviewer
Level String - Identifies the reviewer level of each reviews during access certification. Applicable for multi level campaigns only.
- reviewer
Type String - The type of reviewer to which the review is assigned.
Import
$ pulumi import okta:index/review:Review example <review_id?
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Okta pulumi/pulumi-okta
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
okta
Terraform Provider.