flexibleengine.ImagesImageShareAccepter
Explore with Pulumi AI
Use this resource to accept an IMS image share from other users within FlexibleEngine.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as flexibleengine from "@pulumi/flexibleengine";
const config = new pulumi.Config();
const imageId = config.requireObject("imageId");
const test = new flexibleengine.ImagesImageShareAccepter("test", {imageId: imageId});
import pulumi
import pulumi_flexibleengine as flexibleengine
config = pulumi.Config()
image_id = config.require_object("imageId")
test = flexibleengine.ImagesImageShareAccepter("test", image_id=image_id)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
imageId := cfg.RequireObject("imageId")
_, err := flexibleengine.NewImagesImageShareAccepter(ctx, "test", &flexibleengine.ImagesImageShareAccepterArgs{
ImageId: pulumi.Any(imageId),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Flexibleengine = Pulumi.Flexibleengine;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var imageId = config.RequireObject<dynamic>("imageId");
var test = new Flexibleengine.ImagesImageShareAccepter("test", new()
{
ImageId = imageId,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.flexibleengine.ImagesImageShareAccepter;
import com.pulumi.flexibleengine.ImagesImageShareAccepterArgs;
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) {
final var config = ctx.config();
final var imageId = config.get("imageId");
var test = new ImagesImageShareAccepter("test", ImagesImageShareAccepterArgs.builder()
.imageId(imageId)
.build());
}
}
configuration:
imageId:
type: dynamic
resources:
test:
type: flexibleengine:ImagesImageShareAccepter
properties:
imageId: ${imageId}
Create ImagesImageShareAccepter Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ImagesImageShareAccepter(name: string, args: ImagesImageShareAccepterArgs, opts?: CustomResourceOptions);
@overload
def ImagesImageShareAccepter(resource_name: str,
args: ImagesImageShareAccepterArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ImagesImageShareAccepter(resource_name: str,
opts: Optional[ResourceOptions] = None,
image_id: Optional[str] = None,
images_image_share_accepter_id: Optional[str] = None,
region: Optional[str] = None,
timeouts: Optional[ImagesImageShareAccepterTimeoutsArgs] = None,
vault_id: Optional[str] = None)
func NewImagesImageShareAccepter(ctx *Context, name string, args ImagesImageShareAccepterArgs, opts ...ResourceOption) (*ImagesImageShareAccepter, error)
public ImagesImageShareAccepter(string name, ImagesImageShareAccepterArgs args, CustomResourceOptions? opts = null)
public ImagesImageShareAccepter(String name, ImagesImageShareAccepterArgs args)
public ImagesImageShareAccepter(String name, ImagesImageShareAccepterArgs args, CustomResourceOptions options)
type: flexibleengine:ImagesImageShareAccepter
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 ImagesImageShareAccepterArgs
- 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 ImagesImageShareAccepterArgs
- 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 ImagesImageShareAccepterArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ImagesImageShareAccepterArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ImagesImageShareAccepterArgs
- 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 imagesImageShareAccepterResource = new Flexibleengine.ImagesImageShareAccepter("imagesImageShareAccepterResource", new()
{
ImageId = "string",
ImagesImageShareAccepterId = "string",
Region = "string",
Timeouts = new Flexibleengine.Inputs.ImagesImageShareAccepterTimeoutsArgs
{
Create = "string",
Delete = "string",
},
VaultId = "string",
});
example, err := flexibleengine.NewImagesImageShareAccepter(ctx, "imagesImageShareAccepterResource", &flexibleengine.ImagesImageShareAccepterArgs{
ImageId: pulumi.String("string"),
ImagesImageShareAccepterId: pulumi.String("string"),
Region: pulumi.String("string"),
Timeouts: &flexibleengine.ImagesImageShareAccepterTimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
},
VaultId: pulumi.String("string"),
})
var imagesImageShareAccepterResource = new ImagesImageShareAccepter("imagesImageShareAccepterResource", ImagesImageShareAccepterArgs.builder()
.imageId("string")
.imagesImageShareAccepterId("string")
.region("string")
.timeouts(ImagesImageShareAccepterTimeoutsArgs.builder()
.create("string")
.delete("string")
.build())
.vaultId("string")
.build());
images_image_share_accepter_resource = flexibleengine.ImagesImageShareAccepter("imagesImageShareAccepterResource",
image_id="string",
images_image_share_accepter_id="string",
region="string",
timeouts={
"create": "string",
"delete": "string",
},
vault_id="string")
const imagesImageShareAccepterResource = new flexibleengine.ImagesImageShareAccepter("imagesImageShareAccepterResource", {
imageId: "string",
imagesImageShareAccepterId: "string",
region: "string",
timeouts: {
create: "string",
"delete": "string",
},
vaultId: "string",
});
type: flexibleengine:ImagesImageShareAccepter
properties:
imageId: string
imagesImageShareAccepterId: string
region: string
timeouts:
create: string
delete: string
vaultId: string
ImagesImageShareAccepter 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 ImagesImageShareAccepter resource accepts the following input properties:
- Image
Id string Specifies the ID of the image.
Changing this parameter will create a new resource.
- string
- The resource ID.
- Region string
- Specifies the region in which to create the resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
- Timeouts
Images
Image Share Accepter Timeouts - Vault
Id string Specifies the ID of a vault. This parameter is mandatory if you want to accept a shared full-ECS image created from a CBR backup.
Changing this parameter will create a new resource.
- Image
Id string Specifies the ID of the image.
Changing this parameter will create a new resource.
- string
- The resource ID.
- Region string
- Specifies the region in which to create the resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
- Timeouts
Images
Image Share Accepter Timeouts Args - Vault
Id string Specifies the ID of a vault. This parameter is mandatory if you want to accept a shared full-ECS image created from a CBR backup.
Changing this parameter will create a new resource.
- image
Id String Specifies the ID of the image.
Changing this parameter will create a new resource.
- String
- The resource ID.
- region String
- Specifies the region in which to create the resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
- timeouts
Images
Image Share Accepter Timeouts - vault
Id String Specifies the ID of a vault. This parameter is mandatory if you want to accept a shared full-ECS image created from a CBR backup.
Changing this parameter will create a new resource.
- image
Id string Specifies the ID of the image.
Changing this parameter will create a new resource.
- string
- The resource ID.
- region string
- Specifies the region in which to create the resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
- timeouts
Images
Image Share Accepter Timeouts - vault
Id string Specifies the ID of a vault. This parameter is mandatory if you want to accept a shared full-ECS image created from a CBR backup.
Changing this parameter will create a new resource.
- image_
id str Specifies the ID of the image.
Changing this parameter will create a new resource.
- str
- The resource ID.
- region str
- Specifies the region in which to create the resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
- timeouts
Images
Image Share Accepter Timeouts Args - vault_
id str Specifies the ID of a vault. This parameter is mandatory if you want to accept a shared full-ECS image created from a CBR backup.
Changing this parameter will create a new resource.
- image
Id String Specifies the ID of the image.
Changing this parameter will create a new resource.
- String
- The resource ID.
- region String
- Specifies the region in which to create the resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
- timeouts Property Map
- vault
Id String Specifies the ID of a vault. This parameter is mandatory if you want to accept a shared full-ECS image created from a CBR backup.
Changing this parameter will create a new resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the ImagesImageShareAccepter 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 ImagesImageShareAccepter Resource
Get an existing ImagesImageShareAccepter 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?: ImagesImageShareAccepterState, opts?: CustomResourceOptions): ImagesImageShareAccepter
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
image_id: Optional[str] = None,
images_image_share_accepter_id: Optional[str] = None,
region: Optional[str] = None,
timeouts: Optional[ImagesImageShareAccepterTimeoutsArgs] = None,
vault_id: Optional[str] = None) -> ImagesImageShareAccepter
func GetImagesImageShareAccepter(ctx *Context, name string, id IDInput, state *ImagesImageShareAccepterState, opts ...ResourceOption) (*ImagesImageShareAccepter, error)
public static ImagesImageShareAccepter Get(string name, Input<string> id, ImagesImageShareAccepterState? state, CustomResourceOptions? opts = null)
public static ImagesImageShareAccepter get(String name, Output<String> id, ImagesImageShareAccepterState state, CustomResourceOptions options)
resources: _: type: flexibleengine:ImagesImageShareAccepter 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.
- Image
Id string Specifies the ID of the image.
Changing this parameter will create a new resource.
- string
- The resource ID.
- Region string
- Specifies the region in which to create the resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
- Timeouts
Images
Image Share Accepter Timeouts - Vault
Id string Specifies the ID of a vault. This parameter is mandatory if you want to accept a shared full-ECS image created from a CBR backup.
Changing this parameter will create a new resource.
- Image
Id string Specifies the ID of the image.
Changing this parameter will create a new resource.
- string
- The resource ID.
- Region string
- Specifies the region in which to create the resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
- Timeouts
Images
Image Share Accepter Timeouts Args - Vault
Id string Specifies the ID of a vault. This parameter is mandatory if you want to accept a shared full-ECS image created from a CBR backup.
Changing this parameter will create a new resource.
- image
Id String Specifies the ID of the image.
Changing this parameter will create a new resource.
- String
- The resource ID.
- region String
- Specifies the region in which to create the resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
- timeouts
Images
Image Share Accepter Timeouts - vault
Id String Specifies the ID of a vault. This parameter is mandatory if you want to accept a shared full-ECS image created from a CBR backup.
Changing this parameter will create a new resource.
- image
Id string Specifies the ID of the image.
Changing this parameter will create a new resource.
- string
- The resource ID.
- region string
- Specifies the region in which to create the resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
- timeouts
Images
Image Share Accepter Timeouts - vault
Id string Specifies the ID of a vault. This parameter is mandatory if you want to accept a shared full-ECS image created from a CBR backup.
Changing this parameter will create a new resource.
- image_
id str Specifies the ID of the image.
Changing this parameter will create a new resource.
- str
- The resource ID.
- region str
- Specifies the region in which to create the resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
- timeouts
Images
Image Share Accepter Timeouts Args - vault_
id str Specifies the ID of a vault. This parameter is mandatory if you want to accept a shared full-ECS image created from a CBR backup.
Changing this parameter will create a new resource.
- image
Id String Specifies the ID of the image.
Changing this parameter will create a new resource.
- String
- The resource ID.
- region String
- Specifies the region in which to create the resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
- timeouts Property Map
- vault
Id String Specifies the ID of a vault. This parameter is mandatory if you want to accept a shared full-ECS image created from a CBR backup.
Changing this parameter will create a new resource.
Supporting Types
ImagesImageShareAccepterTimeouts, ImagesImageShareAccepterTimeoutsArgs
Package Details
- Repository
- flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
- License
- Notes
- This Pulumi package is based on the
flexibleengine
Terraform Provider.