konnect.PortalLogo
Explore with Pulumi AI
PortalLogo Resource
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as konnect from "@pulumi/konnect";
const myPortallogo = new konnect.PortalLogo("myPortallogo", {
data: "data:image/png;base64,YW5faW1hZ2VfZmlsZQ==",
portalId: "f32d905a-ed33-46a3-a093-d8f536af9a8a",
});
import pulumi
import pulumi_konnect as konnect
my_portallogo = konnect.PortalLogo("myPortallogo",
data="data:image/png;base64,YW5faW1hZ2VfZmlsZQ==",
portal_id="f32d905a-ed33-46a3-a093-d8f536af9a8a")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/konnect/v3/konnect"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := konnect.NewPortalLogo(ctx, "myPortallogo", &konnect.PortalLogoArgs{
Data: pulumi.String("data:image/png;base64,YW5faW1hZ2VfZmlsZQ=="),
PortalId: pulumi.String("f32d905a-ed33-46a3-a093-d8f536af9a8a"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Konnect = Pulumi.Konnect;
return await Deployment.RunAsync(() =>
{
var myPortallogo = new Konnect.PortalLogo("myPortallogo", new()
{
Data = "data:image/png;base64,YW5faW1hZ2VfZmlsZQ==",
PortalId = "f32d905a-ed33-46a3-a093-d8f536af9a8a",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.konnect.PortalLogo;
import com.pulumi.konnect.PortalLogoArgs;
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 myPortallogo = new PortalLogo("myPortallogo", PortalLogoArgs.builder()
.data("data:image/png;base64,YW5faW1hZ2VfZmlsZQ==")
.portalId("f32d905a-ed33-46a3-a093-d8f536af9a8a")
.build());
}
}
resources:
myPortallogo:
type: konnect:PortalLogo
properties:
data: data:image/png;base64,YW5faW1hZ2VfZmlsZQ==
portalId: f32d905a-ed33-46a3-a093-d8f536af9a8a
Create PortalLogo Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new PortalLogo(name: string, args: PortalLogoArgs, opts?: CustomResourceOptions);
@overload
def PortalLogo(resource_name: str,
args: PortalLogoArgs,
opts: Optional[ResourceOptions] = None)
@overload
def PortalLogo(resource_name: str,
opts: Optional[ResourceOptions] = None,
data: Optional[str] = None,
portal_id: Optional[str] = None)
func NewPortalLogo(ctx *Context, name string, args PortalLogoArgs, opts ...ResourceOption) (*PortalLogo, error)
public PortalLogo(string name, PortalLogoArgs args, CustomResourceOptions? opts = null)
public PortalLogo(String name, PortalLogoArgs args)
public PortalLogo(String name, PortalLogoArgs args, CustomResourceOptions options)
type: konnect:PortalLogo
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 PortalLogoArgs
- 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 PortalLogoArgs
- 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 PortalLogoArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PortalLogoArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PortalLogoArgs
- 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 portalLogoResource = new Konnect.PortalLogo("portalLogoResource", new()
{
Data = "string",
PortalId = "string",
});
example, err := konnect.NewPortalLogo(ctx, "portalLogoResource", &konnect.PortalLogoArgs{
Data: pulumi.String("string"),
PortalId: pulumi.String("string"),
})
var portalLogoResource = new PortalLogo("portalLogoResource", PortalLogoArgs.builder()
.data("string")
.portalId("string")
.build());
portal_logo_resource = konnect.PortalLogo("portalLogoResource",
data="string",
portal_id="string")
const portalLogoResource = new konnect.PortalLogo("portalLogoResource", {
data: "string",
portalId: "string",
});
type: konnect:PortalLogo
properties:
data: string
portalId: string
PortalLogo 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 PortalLogo resource accepts the following input properties:
Outputs
All input properties are implicitly available as output properties. Additionally, the PortalLogo 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 PortalLogo Resource
Get an existing PortalLogo 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?: PortalLogoState, opts?: CustomResourceOptions): PortalLogo
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
data: Optional[str] = None,
portal_id: Optional[str] = None) -> PortalLogo
func GetPortalLogo(ctx *Context, name string, id IDInput, state *PortalLogoState, opts ...ResourceOption) (*PortalLogo, error)
public static PortalLogo Get(string name, Input<string> id, PortalLogoState? state, CustomResourceOptions? opts = null)
public static PortalLogo get(String name, Output<String> id, PortalLogoState state, CustomResourceOptions options)
resources: _: type: konnect:PortalLogo 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.
Import
$ pulumi import konnect:index/portalLogo:PortalLogo my_konnect_portal_logo "f32d905a-ed33-46a3-a093-d8f536af9a8a"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- konnect kong/terraform-provider-konnect
- License
- Notes
- This Pulumi package is based on the
konnect
Terraform Provider.