ibm.AppidAuditStatus
Explore with Pulumi AI
Create, update, or reset an IBM Cloud AppID Management Services audit status (available for graduated tier only). For more information, see auditing events for App ID
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const status = new ibm.AppidAuditStatus("status", {
tenantId: _var.tenant_id,
isActive: true,
});
import pulumi
import pulumi_ibm as ibm
status = ibm.AppidAuditStatus("status",
tenant_id=var["tenant_id"],
is_active=True)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ibm.NewAppidAuditStatus(ctx, "status", &ibm.AppidAuditStatusArgs{
TenantId: pulumi.Any(_var.Tenant_id),
IsActive: pulumi.Bool(true),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ibm = Pulumi.Ibm;
return await Deployment.RunAsync(() =>
{
var status = new Ibm.AppidAuditStatus("status", new()
{
TenantId = @var.Tenant_id,
IsActive = true,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.AppidAuditStatus;
import com.pulumi.ibm.AppidAuditStatusArgs;
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 status = new AppidAuditStatus("status", AppidAuditStatusArgs.builder()
.tenantId(var_.tenant_id())
.isActive(true)
.build());
}
}
resources:
status:
type: ibm:AppidAuditStatus
properties:
tenantId: ${var.tenant_id}
isActive: true
Create AppidAuditStatus Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AppidAuditStatus(name: string, args: AppidAuditStatusArgs, opts?: CustomResourceOptions);
@overload
def AppidAuditStatus(resource_name: str,
args: AppidAuditStatusArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AppidAuditStatus(resource_name: str,
opts: Optional[ResourceOptions] = None,
is_active: Optional[bool] = None,
tenant_id: Optional[str] = None,
appid_audit_status_id: Optional[str] = None)
func NewAppidAuditStatus(ctx *Context, name string, args AppidAuditStatusArgs, opts ...ResourceOption) (*AppidAuditStatus, error)
public AppidAuditStatus(string name, AppidAuditStatusArgs args, CustomResourceOptions? opts = null)
public AppidAuditStatus(String name, AppidAuditStatusArgs args)
public AppidAuditStatus(String name, AppidAuditStatusArgs args, CustomResourceOptions options)
type: ibm:AppidAuditStatus
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 AppidAuditStatusArgs
- 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 AppidAuditStatusArgs
- 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 AppidAuditStatusArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AppidAuditStatusArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AppidAuditStatusArgs
- 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 appidAuditStatusResource = new Ibm.AppidAuditStatus("appidAuditStatusResource", new()
{
IsActive = false,
TenantId = "string",
AppidAuditStatusId = "string",
});
example, err := ibm.NewAppidAuditStatus(ctx, "appidAuditStatusResource", &ibm.AppidAuditStatusArgs{
IsActive: pulumi.Bool(false),
TenantId: pulumi.String("string"),
AppidAuditStatusId: pulumi.String("string"),
})
var appidAuditStatusResource = new AppidAuditStatus("appidAuditStatusResource", AppidAuditStatusArgs.builder()
.isActive(false)
.tenantId("string")
.appidAuditStatusId("string")
.build());
appid_audit_status_resource = ibm.AppidAuditStatus("appidAuditStatusResource",
is_active=False,
tenant_id="string",
appid_audit_status_id="string")
const appidAuditStatusResource = new ibm.AppidAuditStatus("appidAuditStatusResource", {
isActive: false,
tenantId: "string",
appidAuditStatusId: "string",
});
type: ibm:AppidAuditStatus
properties:
appidAuditStatusId: string
isActive: false
tenantId: string
AppidAuditStatus 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 AppidAuditStatus resource accepts the following input properties:
- Is
Active bool true
if auditing should be turned on- Tenant
Id string - The AppID instance GUID
- Appid
Audit stringStatus Id
- Is
Active bool true
if auditing should be turned on- Tenant
Id string - The AppID instance GUID
- Appid
Audit stringStatus Id
- is
Active Boolean true
if auditing should be turned on- tenant
Id String - The AppID instance GUID
- appid
Audit StringStatus Id
- is
Active boolean true
if auditing should be turned on- tenant
Id string - The AppID instance GUID
- appid
Audit stringStatus Id
- is_
active bool true
if auditing should be turned on- tenant_
id str - The AppID instance GUID
- appid_
audit_ strstatus_ id
- is
Active Boolean true
if auditing should be turned on- tenant
Id String - The AppID instance GUID
- appid
Audit StringStatus Id
Outputs
All input properties are implicitly available as output properties. Additionally, the AppidAuditStatus resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing AppidAuditStatus Resource
Get an existing AppidAuditStatus 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?: AppidAuditStatusState, opts?: CustomResourceOptions): AppidAuditStatus
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
appid_audit_status_id: Optional[str] = None,
is_active: Optional[bool] = None,
tenant_id: Optional[str] = None) -> AppidAuditStatus
func GetAppidAuditStatus(ctx *Context, name string, id IDInput, state *AppidAuditStatusState, opts ...ResourceOption) (*AppidAuditStatus, error)
public static AppidAuditStatus Get(string name, Input<string> id, AppidAuditStatusState? state, CustomResourceOptions? opts = null)
public static AppidAuditStatus get(String name, Output<String> id, AppidAuditStatusState state, CustomResourceOptions options)
resources: _: type: ibm:AppidAuditStatus 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.
- Appid
Audit stringStatus Id - Is
Active bool true
if auditing should be turned on- Tenant
Id string - The AppID instance GUID
- Appid
Audit stringStatus Id - Is
Active bool true
if auditing should be turned on- Tenant
Id string - The AppID instance GUID
- appid
Audit StringStatus Id - is
Active Boolean true
if auditing should be turned on- tenant
Id String - The AppID instance GUID
- appid
Audit stringStatus Id - is
Active boolean true
if auditing should be turned on- tenant
Id string - The AppID instance GUID
- appid_
audit_ strstatus_ id - is_
active bool true
if auditing should be turned on- tenant_
id str - The AppID instance GUID
- appid
Audit StringStatus Id - is
Active Boolean true
if auditing should be turned on- tenant
Id String - The AppID instance GUID
Import
The ibm_appid_audit_status
resource can be imported by using the AppID tenant ID.
Syntax
bash
$ pulumi import ibm:index/appidAuditStatus:AppidAuditStatus status <tenant_id>
Example
bash
$ pulumi import ibm:index/appidAuditStatus:AppidAuditStatus status 5fa344a8-d361-4bc2-9051-58ca253f4b2b
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.