Documentation ¶
Index ¶
- Variables
- func NewAccessProfileDataSource() datasource.DataSource
- func NewAccessProfileResource() resource.Resource
- type AccessProfile
- type AccessProfileApprovalScheme
- type AccessProfileDataSource
- func (d *AccessProfileDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (d *AccessProfileDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, ...)
- func (d *AccessProfileDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *AccessProfileDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- type AccessProfileResource
- func (r *AccessProfileResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *AccessProfileResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *AccessProfileResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *AccessProfileResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *AccessProfileResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *AccessProfileResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *AccessProfileResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *AccessProfileResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type AccessProfileSourceRef
- type AccessProfiles
- type EntitlementRef
- type OwnerReference
- type Requestability
- type Revocability
Constants ¶
This section is empty.
Variables ¶
View Source
var AccessProfileApprovalSchemeObject = types.ObjectType{ AttrTypes: map[string]attr.Type{ "approver_type": types.StringType, "approver_id": types.StringType, }, }
View Source
var RevocabilityType = map[string]attr.Type{ "approval_schemes": types.ListType{ElemType: AccessProfileApprovalSchemeObject}, }
Functions ¶
func NewAccessProfileDataSource ¶
func NewAccessProfileDataSource() datasource.DataSource
Types ¶
type AccessProfile ¶
type AccessProfile struct { // The ID of the Access Profile Id types.String `tfsdk:"id"` // Name of the Access Profile Name types.String `tfsdk:"name" json:"name"` // Information about the Access Profile Description types.String `json:"description" tfsdk:"description"` // Date the Access Profile was created Created types.String `tfsdk:"created"` // Date the Access Profile was last modified. // Modified types.String `tfsdk:"modified"` // Whether the Access Profile is enabled. If the Access Profile is enabled then you must include at least one Entitlement. Enabled types.Bool `tfsdk:"enabled"` // SourceID types.String `tfsdk:"source_id"` // OwnerID types.String `tfsdk:"owner_id"` Owner *OwnerReference `tfsdk:"owner"` Source *AccessProfileSourceRef `tfsdk:"source"` // A list of entitlements associated with the Access Profile. If enabled is false this is allowed to be empty otherwise it needs to contain at least one Entitlement. Entitlements []EntitlementRef `tfsdk:"entitlements"` // Whether the Access Profile is requestable via access request. Currently, making an Access Profile non-requestable is only supported for customers enabled with the new Request Center. Otherwise, attempting to create an Access Profile with a value **false** in this field results in a 400 error. Requestable types.Bool `tfsdk:"requestable"` AccessRequestConfig *Requestability `tfsdk:"access_request_config"` RevocationRequestConfig *Revocability `tfsdk:"revocation_request_config"` }
type AccessProfileApprovalScheme ¶
type AccessProfileApprovalScheme struct { // Describes the individual or group that is responsible for an approval step. Values are as follows. **APP_OWNER**: The owner of the Application **OWNER**: Owner of the associated Access Profile or Role **SOURCE_OWNER**: Owner of the Source associated with an Access Profile **MANAGER**: Manager of the Identity making the request **GOVERNANCE_GROUP**: A Governance Group, the ID of which is specified by the **approverId** field ApproverType types.String `tfsdk:"approver_type"` // Id of the specific approver, used only when approverType is GOVERNANCE_GROUP ApproverId types.String `tfsdk:"approver_id"` }
AccessProfileApprovalScheme struct for AccessProfileApprovalScheme
type AccessProfileDataSource ¶
type AccessProfileDataSource struct {
// contains filtered or unexported fields
}
func (*AccessProfileDataSource) Configure ¶
func (d *AccessProfileDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
func (*AccessProfileDataSource) Metadata ¶
func (d *AccessProfileDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
func (*AccessProfileDataSource) Read ¶
func (d *AccessProfileDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*AccessProfileDataSource) Schema ¶
func (d *AccessProfileDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
type AccessProfileResource ¶
type AccessProfileResource struct {
// contains filtered or unexported fields
}
func (*AccessProfileResource) Configure ¶
func (r *AccessProfileResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*AccessProfileResource) Create ¶
func (r *AccessProfileResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*AccessProfileResource) Delete ¶
func (r *AccessProfileResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*AccessProfileResource) ImportState ¶
func (r *AccessProfileResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*AccessProfileResource) Metadata ¶
func (r *AccessProfileResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*AccessProfileResource) Read ¶
func (r *AccessProfileResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*AccessProfileResource) Schema ¶
func (r *AccessProfileResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*AccessProfileResource) Update ¶
func (r *AccessProfileResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type AccessProfileSourceRef ¶
type AccessProfileSourceRef struct { // The ID of the Source with with which the Access Profile is associated Id types.String `tfsdk:"id"` // The type of the Source, will always be SOURCE Type types.String `tfsdk:"type"` // The display name of the associated Source Name types.String `tfsdk:"name"` }
AccessProfileSourceRef struct for AccessProfileSourceRef
type AccessProfiles ¶
type AccessProfiles struct {
AccessProfiles []AccessProfile `tfsdk:"governance_groups"`
}
AccessProfiles -
type EntitlementRef ¶
type EntitlementRef struct { // The ID of the Entitlement Id types.String `tfsdk:"id"` // The type of the Entitlement, will always be ENTITLEMENT Type types.String `tfsdk:"type"` }
EntitlementRef struct for EntitlementRef
type OwnerReference ¶
type OwnerReference struct { Type types.String `tfsdk:"type"` // Identity id Id types.String `tfsdk:"id"` // Human-readable display name of the owner. It may be left null or omitted in a POST or PATCH. If set, it must match the current value of the owner's display name, otherwise a 400 Bad Request error will result. Name types.String `tfsdk:"name"` }
type Requestability ¶
type Requestability struct { // Whether the requester of the containing object must provide comments justifying the request CommentsRequired types.Bool `tfsdk:"comments_required"` // Whether an approver must provide comments when denying the request DenialCommentsRequired types.Bool `tfsdk:"denial_comments_required"` // List describing the steps in approving the request ApprovalSchemes []AccessProfileApprovalScheme `tfsdk:"approval_schemes"` }
Requestability struct for Requestability
type Revocability ¶
type Revocability struct { // List describing the steps in approving the revocation request ApprovalSchemes []AccessProfileApprovalScheme `tfsdk:"approval_schemes"` }
Revocability struct for Revocability
Click to show internal directories.
Click to hide internal directories.