oci.Core.ShapeManagement
This resource provides the Shape Management resource in Oracle Cloud Infrastructure Core service.
Add/Remove the specified shape from the compatible shapes list for the image.
Create ShapeManagement Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ShapeManagement(name: string, args: ShapeManagementArgs, opts?: CustomResourceOptions);@overload
def ShapeManagement(resource_name: str,
                    args: ShapeManagementArgs,
                    opts: Optional[ResourceOptions] = None)
@overload
def ShapeManagement(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    compartment_id: Optional[str] = None,
                    image_id: Optional[str] = None,
                    shape_name: Optional[str] = None)func NewShapeManagement(ctx *Context, name string, args ShapeManagementArgs, opts ...ResourceOption) (*ShapeManagement, error)public ShapeManagement(string name, ShapeManagementArgs args, CustomResourceOptions? opts = null)
public ShapeManagement(String name, ShapeManagementArgs args)
public ShapeManagement(String name, ShapeManagementArgs args, CustomResourceOptions options)
type: oci:Core:ShapeManagement
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 ShapeManagementArgs
- 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 ShapeManagementArgs
- 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 ShapeManagementArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ShapeManagementArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ShapeManagementArgs
- 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 shapeManagementResource = new Oci.Core.ShapeManagement("shapeManagementResource", new()
{
    CompartmentId = "string",
    ImageId = "string",
    ShapeName = "string",
});
example, err := core.NewShapeManagement(ctx, "shapeManagementResource", &core.ShapeManagementArgs{
	CompartmentId: pulumi.String("string"),
	ImageId:       pulumi.String("string"),
	ShapeName:     pulumi.String("string"),
})
var shapeManagementResource = new ShapeManagement("shapeManagementResource", ShapeManagementArgs.builder()
    .compartmentId("string")
    .imageId("string")
    .shapeName("string")
    .build());
shape_management_resource = oci.core.ShapeManagement("shapeManagementResource",
    compartment_id="string",
    image_id="string",
    shape_name="string")
const shapeManagementResource = new oci.core.ShapeManagement("shapeManagementResource", {
    compartmentId: "string",
    imageId: "string",
    shapeName: "string",
});
type: oci:Core:ShapeManagement
properties:
    compartmentId: string
    imageId: string
    shapeName: string
ShapeManagement 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 ShapeManagement resource accepts the following input properties:
- CompartmentId string
- The OCID of the compartment containing the image.
- ImageId string
- The OCID of the Image to which the shape should be added.
- ShapeName string
- The compatible shape that is to be added to the compatible shapes list for the image.
- CompartmentId string
- The OCID of the compartment containing the image.
- ImageId string
- The OCID of the Image to which the shape should be added.
- ShapeName string
- The compatible shape that is to be added to the compatible shapes list for the image.
- compartmentId String
- The OCID of the compartment containing the image.
- imageId String
- The OCID of the Image to which the shape should be added.
- shapeName String
- The compatible shape that is to be added to the compatible shapes list for the image.
- compartmentId string
- The OCID of the compartment containing the image.
- imageId string
- The OCID of the Image to which the shape should be added.
- shapeName string
- The compatible shape that is to be added to the compatible shapes list for the image.
- compartment_id str
- The OCID of the compartment containing the image.
- image_id str
- The OCID of the Image to which the shape should be added.
- shape_name str
- The compatible shape that is to be added to the compatible shapes list for the image.
- compartmentId String
- The OCID of the compartment containing the image.
- imageId String
- The OCID of the Image to which the shape should be added.
- shapeName String
- The compatible shape that is to be added to the compatible shapes list for the image.
Outputs
All input properties are implicitly available as output properties. Additionally, the ShapeManagement 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 ShapeManagement Resource
Get an existing ShapeManagement 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?: ShapeManagementState, opts?: CustomResourceOptions): ShapeManagement@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        compartment_id: Optional[str] = None,
        image_id: Optional[str] = None,
        shape_name: Optional[str] = None) -> ShapeManagementfunc GetShapeManagement(ctx *Context, name string, id IDInput, state *ShapeManagementState, opts ...ResourceOption) (*ShapeManagement, error)public static ShapeManagement Get(string name, Input<string> id, ShapeManagementState? state, CustomResourceOptions? opts = null)public static ShapeManagement get(String name, Output<String> id, ShapeManagementState state, CustomResourceOptions options)resources:  _:    type: oci:Core:ShapeManagement    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.
- CompartmentId string
- The OCID of the compartment containing the image.
- ImageId string
- The OCID of the Image to which the shape should be added.
- ShapeName string
- The compatible shape that is to be added to the compatible shapes list for the image.
- CompartmentId string
- The OCID of the compartment containing the image.
- ImageId string
- The OCID of the Image to which the shape should be added.
- ShapeName string
- The compatible shape that is to be added to the compatible shapes list for the image.
- compartmentId String
- The OCID of the compartment containing the image.
- imageId String
- The OCID of the Image to which the shape should be added.
- shapeName String
- The compatible shape that is to be added to the compatible shapes list for the image.
- compartmentId string
- The OCID of the compartment containing the image.
- imageId string
- The OCID of the Image to which the shape should be added.
- shapeName string
- The compatible shape that is to be added to the compatible shapes list for the image.
- compartment_id str
- The OCID of the compartment containing the image.
- image_id str
- The OCID of the Image to which the shape should be added.
- shape_name str
- The compatible shape that is to be added to the compatible shapes list for the image.
- compartmentId String
- The OCID of the compartment containing the image.
- imageId String
- The OCID of the Image to which the shape should be added.
- shapeName String
- The compatible shape that is to be added to the compatible shapes list for the image.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.
