Create SccScope Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SccScope(name: string, args: SccScopeArgs, opts?: CustomResourceOptions);@overload
def SccScope(resource_name: str,
args: SccScopeArgs,
opts: Optional[ResourceOptions] = None)
@overload
def SccScope(resource_name: str,
opts: Optional[ResourceOptions] = None,
environment: Optional[str] = None,
instance_id: Optional[str] = None,
properties: Optional[Mapping[str, str]] = None,
description: Optional[str] = None,
exclusions: Optional[Sequence[SccScopeExclusionArgs]] = None,
name: Optional[str] = None,
scc_scope_id: Optional[str] = None)func NewSccScope(ctx *Context, name string, args SccScopeArgs, opts ...ResourceOption) (*SccScope, error)public SccScope(string name, SccScopeArgs args, CustomResourceOptions? opts = null)
public SccScope(String name, SccScopeArgs args)
public SccScope(String name, SccScopeArgs args, CustomResourceOptions options)
type: ibm:SccScope
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 SccScopeArgs
- 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 SccScopeArgs
- 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 SccScopeArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SccScopeArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SccScopeArgs
- 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 sccScopeResource = new Ibm.SccScope("sccScopeResource", new()
{
Environment = "string",
InstanceId = "string",
Properties =
{
{ "string", "string" },
},
Description = "string",
Exclusions = new[]
{
new Ibm.Inputs.SccScopeExclusionArgs
{
ScopeId = "string",
ScopeType = "string",
},
},
Name = "string",
SccScopeId = "string",
});
example, err := ibm.NewSccScope(ctx, "sccScopeResource", &ibm.SccScopeArgs{
Environment: pulumi.String("string"),
InstanceId: pulumi.String("string"),
Properties: pulumi.StringMap{
"string": pulumi.String("string"),
},
Description: pulumi.String("string"),
Exclusions: ibm.SccScopeExclusionArray{
&ibm.SccScopeExclusionArgs{
ScopeId: pulumi.String("string"),
ScopeType: pulumi.String("string"),
},
},
Name: pulumi.String("string"),
SccScopeId: pulumi.String("string"),
})
var sccScopeResource = new SccScope("sccScopeResource", SccScopeArgs.builder()
.environment("string")
.instanceId("string")
.properties(Map.of("string", "string"))
.description("string")
.exclusions(SccScopeExclusionArgs.builder()
.scopeId("string")
.scopeType("string")
.build())
.name("string")
.sccScopeId("string")
.build());
scc_scope_resource = ibm.SccScope("sccScopeResource",
environment="string",
instance_id="string",
properties={
"string": "string",
},
description="string",
exclusions=[{
"scope_id": "string",
"scope_type": "string",
}],
name="string",
scc_scope_id="string")
const sccScopeResource = new ibm.SccScope("sccScopeResource", {
environment: "string",
instanceId: "string",
properties: {
string: "string",
},
description: "string",
exclusions: [{
scopeId: "string",
scopeType: "string",
}],
name: "string",
sccScopeId: "string",
});
type: ibm:SccScope
properties:
description: string
environment: string
exclusions:
- scopeId: string
scopeType: string
instanceId: string
name: string
properties:
string: string
sccScopeId: string
SccScope 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 SccScope resource accepts the following input properties:
- Environment string
- The scope environment. This value details what cloud provider the scope targets.
- Instance
Id string - The ID of the Security and Compliance Center instance.
- Properties Dictionary<string, string>
- The properties to define the depth of the scope.
- Description string
- The scope description.
- Exclusions
List<Scc
Scope Exclusion> - A list of scopes/targets to exclude from a scope.
- Name string
- The scope name.
- Scc
Scope stringId
- Environment string
- The scope environment. This value details what cloud provider the scope targets.
- Instance
Id string - The ID of the Security and Compliance Center instance.
- Properties map[string]string
- The properties to define the depth of the scope.
- Description string
- The scope description.
- Exclusions
[]Scc
Scope Exclusion Args - A list of scopes/targets to exclude from a scope.
- Name string
- The scope name.
- Scc
Scope stringId
- environment String
- The scope environment. This value details what cloud provider the scope targets.
- instance
Id String - The ID of the Security and Compliance Center instance.
- properties Map<String,String>
- The properties to define the depth of the scope.
- description String
- The scope description.
- exclusions
List<Scc
Scope Exclusion> - A list of scopes/targets to exclude from a scope.
- name String
- The scope name.
- scc
Scope StringId
- environment string
- The scope environment. This value details what cloud provider the scope targets.
- instance
Id string - The ID of the Security and Compliance Center instance.
- properties {[key: string]: string}
- The properties to define the depth of the scope.
- description string
- The scope description.
- exclusions
Scc
Scope Exclusion[] - A list of scopes/targets to exclude from a scope.
- name string
- The scope name.
- scc
Scope stringId
- environment str
- The scope environment. This value details what cloud provider the scope targets.
- instance_
id str - The ID of the Security and Compliance Center instance.
- properties Mapping[str, str]
- The properties to define the depth of the scope.
- description str
- The scope description.
- exclusions
Sequence[Scc
Scope Exclusion Args] - A list of scopes/targets to exclude from a scope.
- name str
- The scope name.
- scc_
scope_ strid
- environment String
- The scope environment. This value details what cloud provider the scope targets.
- instance
Id String - The ID of the Security and Compliance Center instance.
- properties Map<String>
- The properties to define the depth of the scope.
- description String
- The scope description.
- exclusions List<Property Map>
- A list of scopes/targets to exclude from a scope.
- name String
- The scope name.
- scc
Scope StringId
Outputs
All input properties are implicitly available as output properties. Additionally, the SccScope resource produces the following output properties:
- Account
Id string - The ID of the account associated with the scope.
- Attachment
Count double - The number of attachments tied to the scope.
- Created
By string - The identifier of the account or service ID who created the scope.
- Created
On string - The date when the scope was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Scope
Id string - The ID of the scope.
- Updated
By string - The ID of the user or service ID who updated the scope.
- Updated
On string - The date when the scope was updated.
- Account
Id string - The ID of the account associated with the scope.
- Attachment
Count float64 - The number of attachments tied to the scope.
- Created
By string - The identifier of the account or service ID who created the scope.
- Created
On string - The date when the scope was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Scope
Id string - The ID of the scope.
- Updated
By string - The ID of the user or service ID who updated the scope.
- Updated
On string - The date when the scope was updated.
- account
Id String - The ID of the account associated with the scope.
- attachment
Count Double - The number of attachments tied to the scope.
- created
By String - The identifier of the account or service ID who created the scope.
- created
On String - The date when the scope was created.
- id String
- The provider-assigned unique ID for this managed resource.
- scope
Id String - The ID of the scope.
- updated
By String - The ID of the user or service ID who updated the scope.
- updated
On String - The date when the scope was updated.
- account
Id string - The ID of the account associated with the scope.
- attachment
Count number - The number of attachments tied to the scope.
- created
By string - The identifier of the account or service ID who created the scope.
- created
On string - The date when the scope was created.
- id string
- The provider-assigned unique ID for this managed resource.
- scope
Id string - The ID of the scope.
- updated
By string - The ID of the user or service ID who updated the scope.
- updated
On string - The date when the scope was updated.
- account_
id str - The ID of the account associated with the scope.
- attachment_
count float - The number of attachments tied to the scope.
- created_
by str - The identifier of the account or service ID who created the scope.
- created_
on str - The date when the scope was created.
- id str
- The provider-assigned unique ID for this managed resource.
- scope_
id str - The ID of the scope.
- updated_
by str - The ID of the user or service ID who updated the scope.
- updated_
on str - The date when the scope was updated.
- account
Id String - The ID of the account associated with the scope.
- attachment
Count Number - The number of attachments tied to the scope.
- created
By String - The identifier of the account or service ID who created the scope.
- created
On String - The date when the scope was created.
- id String
- The provider-assigned unique ID for this managed resource.
- scope
Id String - The ID of the scope.
- updated
By String - The ID of the user or service ID who updated the scope.
- updated
On String - The date when the scope was updated.
Look up Existing SccScope Resource
Get an existing SccScope 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?: SccScopeState, opts?: CustomResourceOptions): SccScope@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
attachment_count: Optional[float] = None,
created_by: Optional[str] = None,
created_on: Optional[str] = None,
description: Optional[str] = None,
environment: Optional[str] = None,
exclusions: Optional[Sequence[SccScopeExclusionArgs]] = None,
instance_id: Optional[str] = None,
name: Optional[str] = None,
properties: Optional[Mapping[str, str]] = None,
scc_scope_id: Optional[str] = None,
scope_id: Optional[str] = None,
updated_by: Optional[str] = None,
updated_on: Optional[str] = None) -> SccScopefunc GetSccScope(ctx *Context, name string, id IDInput, state *SccScopeState, opts ...ResourceOption) (*SccScope, error)public static SccScope Get(string name, Input<string> id, SccScopeState? state, CustomResourceOptions? opts = null)public static SccScope get(String name, Output<String> id, SccScopeState state, CustomResourceOptions options)resources: _: type: ibm:SccScope 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.
- Account
Id string - The ID of the account associated with the scope.
- Attachment
Count double - The number of attachments tied to the scope.
- Created
By string - The identifier of the account or service ID who created the scope.
- Created
On string - The date when the scope was created.
- Description string
- The scope description.
- Environment string
- The scope environment. This value details what cloud provider the scope targets.
- Exclusions
List<Scc
Scope Exclusion> - A list of scopes/targets to exclude from a scope.
- Instance
Id string - The ID of the Security and Compliance Center instance.
- Name string
- The scope name.
- Properties Dictionary<string, string>
- The properties to define the depth of the scope.
- Scc
Scope stringId - Scope
Id string - The ID of the scope.
- Updated
By string - The ID of the user or service ID who updated the scope.
- Updated
On string - The date when the scope was updated.
- Account
Id string - The ID of the account associated with the scope.
- Attachment
Count float64 - The number of attachments tied to the scope.
- Created
By string - The identifier of the account or service ID who created the scope.
- Created
On string - The date when the scope was created.
- Description string
- The scope description.
- Environment string
- The scope environment. This value details what cloud provider the scope targets.
- Exclusions
[]Scc
Scope Exclusion Args - A list of scopes/targets to exclude from a scope.
- Instance
Id string - The ID of the Security and Compliance Center instance.
- Name string
- The scope name.
- Properties map[string]string
- The properties to define the depth of the scope.
- Scc
Scope stringId - Scope
Id string - The ID of the scope.
- Updated
By string - The ID of the user or service ID who updated the scope.
- Updated
On string - The date when the scope was updated.
- account
Id String - The ID of the account associated with the scope.
- attachment
Count Double - The number of attachments tied to the scope.
- created
By String - The identifier of the account or service ID who created the scope.
- created
On String - The date when the scope was created.
- description String
- The scope description.
- environment String
- The scope environment. This value details what cloud provider the scope targets.
- exclusions
List<Scc
Scope Exclusion> - A list of scopes/targets to exclude from a scope.
- instance
Id String - The ID of the Security and Compliance Center instance.
- name String
- The scope name.
- properties Map<String,String>
- The properties to define the depth of the scope.
- scc
Scope StringId - scope
Id String - The ID of the scope.
- updated
By String - The ID of the user or service ID who updated the scope.
- updated
On String - The date when the scope was updated.
- account
Id string - The ID of the account associated with the scope.
- attachment
Count number - The number of attachments tied to the scope.
- created
By string - The identifier of the account or service ID who created the scope.
- created
On string - The date when the scope was created.
- description string
- The scope description.
- environment string
- The scope environment. This value details what cloud provider the scope targets.
- exclusions
Scc
Scope Exclusion[] - A list of scopes/targets to exclude from a scope.
- instance
Id string - The ID of the Security and Compliance Center instance.
- name string
- The scope name.
- properties {[key: string]: string}
- The properties to define the depth of the scope.
- scc
Scope stringId - scope
Id string - The ID of the scope.
- updated
By string - The ID of the user or service ID who updated the scope.
- updated
On string - The date when the scope was updated.
- account_
id str - The ID of the account associated with the scope.
- attachment_
count float - The number of attachments tied to the scope.
- created_
by str - The identifier of the account or service ID who created the scope.
- created_
on str - The date when the scope was created.
- description str
- The scope description.
- environment str
- The scope environment. This value details what cloud provider the scope targets.
- exclusions
Sequence[Scc
Scope Exclusion Args] - A list of scopes/targets to exclude from a scope.
- instance_
id str - The ID of the Security and Compliance Center instance.
- name str
- The scope name.
- properties Mapping[str, str]
- The properties to define the depth of the scope.
- scc_
scope_ strid - scope_
id str - The ID of the scope.
- updated_
by str - The ID of the user or service ID who updated the scope.
- updated_
on str - The date when the scope was updated.
- account
Id String - The ID of the account associated with the scope.
- attachment
Count Number - The number of attachments tied to the scope.
- created
By String - The identifier of the account or service ID who created the scope.
- created
On String - The date when the scope was created.
- description String
- The scope description.
- environment String
- The scope environment. This value details what cloud provider the scope targets.
- exclusions List<Property Map>
- A list of scopes/targets to exclude from a scope.
- instance
Id String - The ID of the Security and Compliance Center instance.
- name String
- The scope name.
- properties Map<String>
- The properties to define the depth of the scope.
- scc
Scope StringId - scope
Id String - The ID of the scope.
- updated
By String - The ID of the user or service ID who updated the scope.
- updated
On String - The date when the scope was updated.
Supporting Types
SccScopeExclusion, SccScopeExclusionArgs
- scope_
id str - The ID of the target.
- scope_
type str - A target to exclude from the ibm_scc_scope.
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibmTerraform Provider.
