1. Packages
  2. Control Plane (cpln)
  3. API Docs
  4. AuditContext
Control Plane v0.0.19 published on Thursday, Apr 18, 2024 by pulumiverse

cpln.AuditContext

Explore with Pulumi AI

cpln logo
Control Plane v0.0.19 published on Thursday, Apr 18, 2024 by pulumiverse

    Create AuditContext Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new AuditContext(name: string, args?: AuditContextArgs, opts?: CustomResourceOptions);
    @overload
    def AuditContext(resource_name: str,
                     args: Optional[AuditContextArgs] = None,
                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def AuditContext(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     description: Optional[str] = None,
                     name: Optional[str] = None,
                     tags: Optional[Mapping[str, str]] = None)
    func NewAuditContext(ctx *Context, name string, args *AuditContextArgs, opts ...ResourceOption) (*AuditContext, error)
    public AuditContext(string name, AuditContextArgs? args = null, CustomResourceOptions? opts = null)
    public AuditContext(String name, AuditContextArgs args)
    public AuditContext(String name, AuditContextArgs args, CustomResourceOptions options)
    
    type: cpln:AuditContext
    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 AuditContextArgs
    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 AuditContextArgs
    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 AuditContextArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AuditContextArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AuditContextArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var auditContextResource = new Cpln.AuditContext("auditContextResource", new()
    {
        Description = "string",
        Name = "string",
        Tags = 
        {
            { "string", "string" },
        },
    });
    
    example, err := cpln.NewAuditContext(ctx, "auditContextResource", &cpln.AuditContextArgs{
    	Description: pulumi.String("string"),
    	Name:        pulumi.String("string"),
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    })
    
    var auditContextResource = new AuditContext("auditContextResource", AuditContextArgs.builder()        
        .description("string")
        .name("string")
        .tags(Map.of("string", "string"))
        .build());
    
    audit_context_resource = cpln.AuditContext("auditContextResource",
        description="string",
        name="string",
        tags={
            "string": "string",
        })
    
    const auditContextResource = new cpln.AuditContext("auditContextResource", {
        description: "string",
        name: "string",
        tags: {
            string: "string",
        },
    });
    
    type: cpln:AuditContext
    properties:
        description: string
        name: string
        tags:
            string: string
    

    AuditContext Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The AuditContext resource accepts the following input properties:

    Description string
    Name string
    Tags Dictionary<string, string>
    Description string
    Name string
    Tags map[string]string
    description String
    name String
    tags Map<String,String>
    description string
    name string
    tags {[key: string]: string}
    description str
    name str
    tags Mapping[str, str]
    description String
    name String
    tags Map<String>

    Outputs

    All input properties are implicitly available as output properties. Additionally, the AuditContext resource produces the following output properties:

    CplnId string
    Id string
    The provider-assigned unique ID for this managed resource.
    SelfLink string
    CplnId string
    Id string
    The provider-assigned unique ID for this managed resource.
    SelfLink string
    cplnId String
    id String
    The provider-assigned unique ID for this managed resource.
    selfLink String
    cplnId string
    id string
    The provider-assigned unique ID for this managed resource.
    selfLink string
    cpln_id str
    id str
    The provider-assigned unique ID for this managed resource.
    self_link str
    cplnId String
    id String
    The provider-assigned unique ID for this managed resource.
    selfLink String

    Look up Existing AuditContext Resource

    Get an existing AuditContext 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?: AuditContextState, opts?: CustomResourceOptions): AuditContext
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            cpln_id: Optional[str] = None,
            description: Optional[str] = None,
            name: Optional[str] = None,
            self_link: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None) -> AuditContext
    func GetAuditContext(ctx *Context, name string, id IDInput, state *AuditContextState, opts ...ResourceOption) (*AuditContext, error)
    public static AuditContext Get(string name, Input<string> id, AuditContextState? state, CustomResourceOptions? opts = null)
    public static AuditContext get(String name, Output<String> id, AuditContextState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    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.
    The following state arguments are supported:
    CplnId string
    Description string
    Name string
    SelfLink string
    Tags Dictionary<string, string>
    CplnId string
    Description string
    Name string
    SelfLink string
    Tags map[string]string
    cplnId String
    description String
    name String
    selfLink String
    tags Map<String,String>
    cplnId string
    description string
    name string
    selfLink string
    tags {[key: string]: string}
    cpln_id str
    description str
    name str
    self_link str
    tags Mapping[str, str]
    cplnId String
    description String
    name String
    selfLink String
    tags Map<String>

    Package Details

    Repository
    cpln pulumiverse/pulumi-cpln
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the cpln Terraform Provider.
    cpln logo
    Control Plane v0.0.19 published on Thursday, Apr 18, 2024 by pulumiverse