Create PsaPrivateServiceAccess Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new PsaPrivateServiceAccess(name: string, args: PsaPrivateServiceAccessArgs, opts?: CustomResourceOptions);@overload
def PsaPrivateServiceAccess(resource_name: str,
args: PsaPrivateServiceAccessArgs,
opts: Optional[ResourceOptions] = None)
@overload
def PsaPrivateServiceAccess(resource_name: str,
opts: Optional[ResourceOptions] = None,
compartment_id: Optional[str] = None,
service_id: Optional[str] = None,
subnet_id: Optional[str] = None,
defined_tags: Optional[Mapping[str, str]] = None,
description: Optional[str] = None,
display_name: Optional[str] = None,
freeform_tags: Optional[Mapping[str, str]] = None,
ipv4ip: Optional[str] = None,
nsg_ids: Optional[Sequence[str]] = None,
security_attributes: Optional[Mapping[str, str]] = None)func NewPsaPrivateServiceAccess(ctx *Context, name string, args PsaPrivateServiceAccessArgs, opts ...ResourceOption) (*PsaPrivateServiceAccess, error)public PsaPrivateServiceAccess(string name, PsaPrivateServiceAccessArgs args, CustomResourceOptions? opts = null)
public PsaPrivateServiceAccess(String name, PsaPrivateServiceAccessArgs args)
public PsaPrivateServiceAccess(String name, PsaPrivateServiceAccessArgs args, CustomResourceOptions options)
type: oci:oci:PsaPrivateServiceAccess
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 PsaPrivateServiceAccessArgs
- 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 PsaPrivateServiceAccessArgs
- 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 PsaPrivateServiceAccessArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PsaPrivateServiceAccessArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PsaPrivateServiceAccessArgs
- 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 psaPrivateServiceAccessResource = new Oci.Oci.PsaPrivateServiceAccess("psaPrivateServiceAccessResource", new()
{
CompartmentId = "string",
ServiceId = "string",
SubnetId = "string",
DefinedTags =
{
{ "string", "string" },
},
Description = "string",
DisplayName = "string",
FreeformTags =
{
{ "string", "string" },
},
Ipv4ip = "string",
NsgIds = new[]
{
"string",
},
SecurityAttributes =
{
{ "string", "string" },
},
});
example, err := oci.NewPsaPrivateServiceAccess(ctx, "psaPrivateServiceAccessResource", &oci.PsaPrivateServiceAccessArgs{
CompartmentId: pulumi.String("string"),
ServiceId: pulumi.String("string"),
SubnetId: pulumi.String("string"),
DefinedTags: pulumi.StringMap{
"string": pulumi.String("string"),
},
Description: pulumi.String("string"),
DisplayName: pulumi.String("string"),
FreeformTags: pulumi.StringMap{
"string": pulumi.String("string"),
},
Ipv4ip: pulumi.String("string"),
NsgIds: pulumi.StringArray{
pulumi.String("string"),
},
SecurityAttributes: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var psaPrivateServiceAccessResource = new PsaPrivateServiceAccess("psaPrivateServiceAccessResource", PsaPrivateServiceAccessArgs.builder()
.compartmentId("string")
.serviceId("string")
.subnetId("string")
.definedTags(Map.of("string", "string"))
.description("string")
.displayName("string")
.freeformTags(Map.of("string", "string"))
.ipv4ip("string")
.nsgIds("string")
.securityAttributes(Map.of("string", "string"))
.build());
psa_private_service_access_resource = oci.oci.PsaPrivateServiceAccess("psaPrivateServiceAccessResource",
compartment_id="string",
service_id="string",
subnet_id="string",
defined_tags={
"string": "string",
},
description="string",
display_name="string",
freeform_tags={
"string": "string",
},
ipv4ip="string",
nsg_ids=["string"],
security_attributes={
"string": "string",
})
const psaPrivateServiceAccessResource = new oci.oci.PsaPrivateServiceAccess("psaPrivateServiceAccessResource", {
compartmentId: "string",
serviceId: "string",
subnetId: "string",
definedTags: {
string: "string",
},
description: "string",
displayName: "string",
freeformTags: {
string: "string",
},
ipv4ip: "string",
nsgIds: ["string"],
securityAttributes: {
string: "string",
},
});
type: oci:oci:PsaPrivateServiceAccess
properties:
compartmentId: string
definedTags:
string: string
description: string
displayName: string
freeformTags:
string: string
ipv4ip: string
nsgIds:
- string
securityAttributes:
string: string
serviceId: string
subnetId: string
PsaPrivateServiceAccess 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 PsaPrivateServiceAccess resource accepts the following input properties:
- Compartment
Id string - Service
Id string - Subnet
Id string - Dictionary<string, string>
- Description string
- Display
Name string - Dictionary<string, string>
- Ipv4ip string
- Nsg
Ids List<string> - Security
Attributes Dictionary<string, string>
- Compartment
Id string - Service
Id string - Subnet
Id string - map[string]string
- Description string
- Display
Name string - map[string]string
- Ipv4ip string
- Nsg
Ids []string - Security
Attributes map[string]string
- compartment
Id String - service
Id String - subnet
Id String - Map<String,String>
- description String
- display
Name String - Map<String,String>
- ipv4ip String
- nsg
Ids List<String> - security
Attributes Map<String,String>
- compartment
Id string - service
Id string - subnet
Id string - {[key: string]: string}
- description string
- display
Name string - {[key: string]: string}
- ipv4ip string
- nsg
Ids string[] - security
Attributes {[key: string]: string}
- compartment_
id str - service_
id str - subnet_
id str - Mapping[str, str]
- description str
- display_
name str - Mapping[str, str]
- ipv4ip str
- nsg_
ids Sequence[str] - security_
attributes Mapping[str, str]
- compartment
Id String - service
Id String - subnet
Id String - Map<String>
- description String
- display
Name String - Map<String>
- ipv4ip String
- nsg
Ids List<String> - security
Attributes Map<String>
Outputs
All input properties are implicitly available as output properties. Additionally, the PsaPrivateServiceAccess resource produces the following output properties:
- Fqdns List<string>
- Id string
- The provider-assigned unique ID for this managed resource.
- State string
- Dictionary<string, string>
- Time
Created string - Time
Updated string - Vcn
Id string - Vnic
Id string
- Fqdns []string
- Id string
- The provider-assigned unique ID for this managed resource.
- State string
- map[string]string
- Time
Created string - Time
Updated string - Vcn
Id string - Vnic
Id string
- fqdns List<String>
- id String
- The provider-assigned unique ID for this managed resource.
- state String
- Map<String,String>
- time
Created String - time
Updated String - vcn
Id String - vnic
Id String
- fqdns string[]
- id string
- The provider-assigned unique ID for this managed resource.
- state string
- {[key: string]: string}
- time
Created string - time
Updated string - vcn
Id string - vnic
Id string
- fqdns Sequence[str]
- id str
- The provider-assigned unique ID for this managed resource.
- state str
- Mapping[str, str]
- time_
created str - time_
updated str - vcn_
id str - vnic_
id str
- fqdns List<String>
- id String
- The provider-assigned unique ID for this managed resource.
- state String
- Map<String>
- time
Created String - time
Updated String - vcn
Id String - vnic
Id String
Look up Existing PsaPrivateServiceAccess Resource
Get an existing PsaPrivateServiceAccess 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?: PsaPrivateServiceAccessState, opts?: CustomResourceOptions): PsaPrivateServiceAccess@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
compartment_id: Optional[str] = None,
defined_tags: Optional[Mapping[str, str]] = None,
description: Optional[str] = None,
display_name: Optional[str] = None,
fqdns: Optional[Sequence[str]] = None,
freeform_tags: Optional[Mapping[str, str]] = None,
ipv4ip: Optional[str] = None,
nsg_ids: Optional[Sequence[str]] = None,
security_attributes: Optional[Mapping[str, str]] = None,
service_id: Optional[str] = None,
state: Optional[str] = None,
subnet_id: Optional[str] = None,
system_tags: Optional[Mapping[str, str]] = None,
time_created: Optional[str] = None,
time_updated: Optional[str] = None,
vcn_id: Optional[str] = None,
vnic_id: Optional[str] = None) -> PsaPrivateServiceAccessfunc GetPsaPrivateServiceAccess(ctx *Context, name string, id IDInput, state *PsaPrivateServiceAccessState, opts ...ResourceOption) (*PsaPrivateServiceAccess, error)public static PsaPrivateServiceAccess Get(string name, Input<string> id, PsaPrivateServiceAccessState? state, CustomResourceOptions? opts = null)public static PsaPrivateServiceAccess get(String name, Output<String> id, PsaPrivateServiceAccessState state, CustomResourceOptions options)resources: _: type: oci:oci:PsaPrivateServiceAccess 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.
- Compartment
Id string - Dictionary<string, string>
- Description string
- Display
Name string - Fqdns List<string>
- Dictionary<string, string>
- Ipv4ip string
- Nsg
Ids List<string> - Security
Attributes Dictionary<string, string> - Service
Id string - State string
- Subnet
Id string - Dictionary<string, string>
- Time
Created string - Time
Updated string - Vcn
Id string - Vnic
Id string
- Compartment
Id string - map[string]string
- Description string
- Display
Name string - Fqdns []string
- map[string]string
- Ipv4ip string
- Nsg
Ids []string - Security
Attributes map[string]string - Service
Id string - State string
- Subnet
Id string - map[string]string
- Time
Created string - Time
Updated string - Vcn
Id string - Vnic
Id string
- compartment
Id String - Map<String,String>
- description String
- display
Name String - fqdns List<String>
- Map<String,String>
- ipv4ip String
- nsg
Ids List<String> - security
Attributes Map<String,String> - service
Id String - state String
- subnet
Id String - Map<String,String>
- time
Created String - time
Updated String - vcn
Id String - vnic
Id String
- compartment
Id string - {[key: string]: string}
- description string
- display
Name string - fqdns string[]
- {[key: string]: string}
- ipv4ip string
- nsg
Ids string[] - security
Attributes {[key: string]: string} - service
Id string - state string
- subnet
Id string - {[key: string]: string}
- time
Created string - time
Updated string - vcn
Id string - vnic
Id string
- compartment_
id str - Mapping[str, str]
- description str
- display_
name str - fqdns Sequence[str]
- Mapping[str, str]
- ipv4ip str
- nsg_
ids Sequence[str] - security_
attributes Mapping[str, str] - service_
id str - state str
- subnet_
id str - Mapping[str, str]
- time_
created str - time_
updated str - vcn_
id str - vnic_
id str
- compartment
Id String - Map<String>
- description String
- display
Name String - fqdns List<String>
- Map<String>
- ipv4ip String
- nsg
Ids List<String> - security
Attributes Map<String> - service
Id String - state String
- subnet
Id String - Map<String>
- time
Created String - time
Updated String - vcn
Id String - vnic
Id String
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ociTerraform Provider.
