hsdp.IamProposition
Explore with Pulumi AI
Provides a resource for managing HSDP IAM proposition belonging to an Organization.
Example Usage
The following example creates an application
import * as pulumi from "@pulumi/pulumi";
import * as hsdp from "@pulumi/hsdp";
const testprop = new hsdp.IamProposition("testprop", {
description: "Test Proposition",
organizationId: hsdp_iam_org.devorg.id,
waitForDelete: true,
});
import pulumi
import pulumi_hsdp as hsdp
testprop = hsdp.IamProposition("testprop",
description="Test Proposition",
organization_id=hsdp_iam_org["devorg"]["id"],
wait_for_delete=True)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/hsdp/hsdp"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := hsdp.NewIamProposition(ctx, "testprop", &hsdp.IamPropositionArgs{
Description: pulumi.String("Test Proposition"),
OrganizationId: pulumi.Any(hsdp_iam_org.Devorg.Id),
WaitForDelete: pulumi.Bool(true),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Hsdp = Pulumi.Hsdp;
return await Deployment.RunAsync(() =>
{
var testprop = new Hsdp.IamProposition("testprop", new()
{
Description = "Test Proposition",
OrganizationId = hsdp_iam_org.Devorg.Id,
WaitForDelete = true,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.hsdp.IamProposition;
import com.pulumi.hsdp.IamPropositionArgs;
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 testprop = new IamProposition("testprop", IamPropositionArgs.builder()
.description("Test Proposition")
.organizationId(hsdp_iam_org.devorg().id())
.waitForDelete(true)
.build());
}
}
resources:
testprop:
type: hsdp:IamProposition
properties:
description: Test Proposition
organizationId: ${hsdp_iam_org.devorg.id}
waitForDelete: true
Create IamProposition Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new IamProposition(name: string, args: IamPropositionArgs, opts?: CustomResourceOptions);
@overload
def IamProposition(resource_name: str,
args: IamPropositionArgs,
opts: Optional[ResourceOptions] = None)
@overload
def IamProposition(resource_name: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
organization_id: Optional[str] = None,
global_reference_id: Optional[str] = None,
iam_proposition_id: Optional[str] = None,
name: Optional[str] = None,
wait_for_delete: Optional[bool] = None)
func NewIamProposition(ctx *Context, name string, args IamPropositionArgs, opts ...ResourceOption) (*IamProposition, error)
public IamProposition(string name, IamPropositionArgs args, CustomResourceOptions? opts = null)
public IamProposition(String name, IamPropositionArgs args)
public IamProposition(String name, IamPropositionArgs args, CustomResourceOptions options)
type: hsdp:IamProposition
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 IamPropositionArgs
- 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 IamPropositionArgs
- 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 IamPropositionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args IamPropositionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args IamPropositionArgs
- 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 iamPropositionResource = new Hsdp.IamProposition("iamPropositionResource", new()
{
Description = "string",
OrganizationId = "string",
GlobalReferenceId = "string",
IamPropositionId = "string",
Name = "string",
WaitForDelete = false,
});
example, err := hsdp.NewIamProposition(ctx, "iamPropositionResource", &hsdp.IamPropositionArgs{
Description: pulumi.String("string"),
OrganizationId: pulumi.String("string"),
GlobalReferenceId: pulumi.String("string"),
IamPropositionId: pulumi.String("string"),
Name: pulumi.String("string"),
WaitForDelete: pulumi.Bool(false),
})
var iamPropositionResource = new IamProposition("iamPropositionResource", IamPropositionArgs.builder()
.description("string")
.organizationId("string")
.globalReferenceId("string")
.iamPropositionId("string")
.name("string")
.waitForDelete(false)
.build());
iam_proposition_resource = hsdp.IamProposition("iamPropositionResource",
description="string",
organization_id="string",
global_reference_id="string",
iam_proposition_id="string",
name="string",
wait_for_delete=False)
const iamPropositionResource = new hsdp.IamProposition("iamPropositionResource", {
description: "string",
organizationId: "string",
globalReferenceId: "string",
iamPropositionId: "string",
name: "string",
waitForDelete: false,
});
type: hsdp:IamProposition
properties:
description: string
globalReferenceId: string
iamPropositionId: string
name: string
organizationId: string
waitForDelete: false
IamProposition 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 IamProposition resource accepts the following input properties:
- Description string
- The description of the application
- Organization
Id string - the organization ID (GUID) to attach this a proposition to
- Global
Reference stringId - Iam
Proposition stringId - The GUID of the proposition
- Name string
- The name of the application
- Wait
For boolDelete - If set to true, the resource will wait for the proposition to be deleted before continuing. Default is true.
- Description string
- The description of the application
- Organization
Id string - the organization ID (GUID) to attach this a proposition to
- Global
Reference stringId - Iam
Proposition stringId - The GUID of the proposition
- Name string
- The name of the application
- Wait
For boolDelete - If set to true, the resource will wait for the proposition to be deleted before continuing. Default is true.
- description String
- The description of the application
- organization
Id String - the organization ID (GUID) to attach this a proposition to
- global
Reference StringId - iam
Proposition StringId - The GUID of the proposition
- name String
- The name of the application
- wait
For BooleanDelete - If set to true, the resource will wait for the proposition to be deleted before continuing. Default is true.
- description string
- The description of the application
- organization
Id string - the organization ID (GUID) to attach this a proposition to
- global
Reference stringId - iam
Proposition stringId - The GUID of the proposition
- name string
- The name of the application
- wait
For booleanDelete - If set to true, the resource will wait for the proposition to be deleted before continuing. Default is true.
- description str
- The description of the application
- organization_
id str - the organization ID (GUID) to attach this a proposition to
- global_
reference_ strid - iam_
proposition_ strid - The GUID of the proposition
- name str
- The name of the application
- wait_
for_ booldelete - If set to true, the resource will wait for the proposition to be deleted before continuing. Default is true.
- description String
- The description of the application
- organization
Id String - the organization ID (GUID) to attach this a proposition to
- global
Reference StringId - iam
Proposition StringId - The GUID of the proposition
- name String
- The name of the application
- wait
For BooleanDelete - If set to true, the resource will wait for the proposition to be deleted before continuing. Default is true.
Outputs
All input properties are implicitly available as output properties. Additionally, the IamProposition 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 IamProposition Resource
Get an existing IamProposition 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?: IamPropositionState, opts?: CustomResourceOptions): IamProposition
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
global_reference_id: Optional[str] = None,
iam_proposition_id: Optional[str] = None,
name: Optional[str] = None,
organization_id: Optional[str] = None,
wait_for_delete: Optional[bool] = None) -> IamProposition
func GetIamProposition(ctx *Context, name string, id IDInput, state *IamPropositionState, opts ...ResourceOption) (*IamProposition, error)
public static IamProposition Get(string name, Input<string> id, IamPropositionState? state, CustomResourceOptions? opts = null)
public static IamProposition get(String name, Output<String> id, IamPropositionState state, CustomResourceOptions options)
resources: _: type: hsdp:IamProposition 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.
- Description string
- The description of the application
- Global
Reference stringId - Iam
Proposition stringId - The GUID of the proposition
- Name string
- The name of the application
- Organization
Id string - the organization ID (GUID) to attach this a proposition to
- Wait
For boolDelete - If set to true, the resource will wait for the proposition to be deleted before continuing. Default is true.
- Description string
- The description of the application
- Global
Reference stringId - Iam
Proposition stringId - The GUID of the proposition
- Name string
- The name of the application
- Organization
Id string - the organization ID (GUID) to attach this a proposition to
- Wait
For boolDelete - If set to true, the resource will wait for the proposition to be deleted before continuing. Default is true.
- description String
- The description of the application
- global
Reference StringId - iam
Proposition StringId - The GUID of the proposition
- name String
- The name of the application
- organization
Id String - the organization ID (GUID) to attach this a proposition to
- wait
For BooleanDelete - If set to true, the resource will wait for the proposition to be deleted before continuing. Default is true.
- description string
- The description of the application
- global
Reference stringId - iam
Proposition stringId - The GUID of the proposition
- name string
- The name of the application
- organization
Id string - the organization ID (GUID) to attach this a proposition to
- wait
For booleanDelete - If set to true, the resource will wait for the proposition to be deleted before continuing. Default is true.
- description str
- The description of the application
- global_
reference_ strid - iam_
proposition_ strid - The GUID of the proposition
- name str
- The name of the application
- organization_
id str - the organization ID (GUID) to attach this a proposition to
- wait_
for_ booldelete - If set to true, the resource will wait for the proposition to be deleted before continuing. Default is true.
- description String
- The description of the application
- global
Reference StringId - iam
Proposition StringId - The GUID of the proposition
- name String
- The name of the application
- organization
Id String - the organization ID (GUID) to attach this a proposition to
- wait
For BooleanDelete - If set to true, the resource will wait for the proposition to be deleted before continuing. Default is true.
Import
$ pulumi import hsdp:index/iamProposition:IamProposition An existing proposition can be imported using `hsdp_iam_proposition`, e.g.
$ pulumi import hsdp:index/iamProposition:IamProposition myprop a-guid
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- hsdp philips-software/terraform-provider-hsdp
- License
- Notes
- This Pulumi package is based on the
hsdp
Terraform Provider.