konnect.PortalFavicon
Explore with Pulumi AI
PortalFavicon Resource
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as konnect from "@pulumi/konnect";
const myPortalfavicon = new konnect.PortalFavicon("myPortalfavicon", {
data: "data:image/png;base64,YW5faW1hZ2VfZmlsZQ==",
portalId: "f32d905a-ed33-46a3-a093-d8f536af9a8a",
});
import pulumi
import pulumi_konnect as konnect
my_portalfavicon = konnect.PortalFavicon("myPortalfavicon",
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.NewPortalFavicon(ctx, "myPortalfavicon", &konnect.PortalFaviconArgs{
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 myPortalfavicon = new Konnect.PortalFavicon("myPortalfavicon", 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.PortalFavicon;
import com.pulumi.konnect.PortalFaviconArgs;
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 myPortalfavicon = new PortalFavicon("myPortalfavicon", PortalFaviconArgs.builder()
.data("data:image/png;base64,YW5faW1hZ2VfZmlsZQ==")
.portalId("f32d905a-ed33-46a3-a093-d8f536af9a8a")
.build());
}
}
resources:
myPortalfavicon:
type: konnect:PortalFavicon
properties:
data: data:image/png;base64,YW5faW1hZ2VfZmlsZQ==
portalId: f32d905a-ed33-46a3-a093-d8f536af9a8a
Create PortalFavicon Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new PortalFavicon(name: string, args: PortalFaviconArgs, opts?: CustomResourceOptions);
@overload
def PortalFavicon(resource_name: str,
args: PortalFaviconArgs,
opts: Optional[ResourceOptions] = None)
@overload
def PortalFavicon(resource_name: str,
opts: Optional[ResourceOptions] = None,
data: Optional[str] = None,
portal_id: Optional[str] = None)
func NewPortalFavicon(ctx *Context, name string, args PortalFaviconArgs, opts ...ResourceOption) (*PortalFavicon, error)
public PortalFavicon(string name, PortalFaviconArgs args, CustomResourceOptions? opts = null)
public PortalFavicon(String name, PortalFaviconArgs args)
public PortalFavicon(String name, PortalFaviconArgs args, CustomResourceOptions options)
type: konnect:PortalFavicon
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 PortalFaviconArgs
- 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 PortalFaviconArgs
- 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 PortalFaviconArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PortalFaviconArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PortalFaviconArgs
- 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 portalFaviconResource = new Konnect.PortalFavicon("portalFaviconResource", new()
{
Data = "string",
PortalId = "string",
});
example, err := konnect.NewPortalFavicon(ctx, "portalFaviconResource", &konnect.PortalFaviconArgs{
Data: pulumi.String("string"),
PortalId: pulumi.String("string"),
})
var portalFaviconResource = new PortalFavicon("portalFaviconResource", PortalFaviconArgs.builder()
.data("string")
.portalId("string")
.build());
portal_favicon_resource = konnect.PortalFavicon("portalFaviconResource",
data="string",
portal_id="string")
const portalFaviconResource = new konnect.PortalFavicon("portalFaviconResource", {
data: "string",
portalId: "string",
});
type: konnect:PortalFavicon
properties:
data: string
portalId: string
PortalFavicon 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 PortalFavicon resource accepts the following input properties:
Outputs
All input properties are implicitly available as output properties. Additionally, the PortalFavicon 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 PortalFavicon Resource
Get an existing PortalFavicon 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?: PortalFaviconState, opts?: CustomResourceOptions): PortalFavicon
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
data: Optional[str] = None,
portal_id: Optional[str] = None) -> PortalFavicon
func GetPortalFavicon(ctx *Context, name string, id IDInput, state *PortalFaviconState, opts ...ResourceOption) (*PortalFavicon, error)
public static PortalFavicon Get(string name, Input<string> id, PortalFaviconState? state, CustomResourceOptions? opts = null)
public static PortalFavicon get(String name, Output<String> id, PortalFaviconState state, CustomResourceOptions options)
resources: _: type: konnect:PortalFavicon 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/portalFavicon:PortalFavicon my_konnect_portal_favicon "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.