Best Python code snippet using localstack_python
get_patch_baseline.py
Source:get_patch_baseline.py  
...88            name=self.name,89            name_prefix=self.name_prefix,90            operating_system=self.operating_system,91            owner=self.owner)92def get_patch_baseline(default_baseline: Optional[bool] = None,93                       name_prefix: Optional[str] = None,94                       operating_system: Optional[str] = None,95                       owner: Optional[str] = None,96                       opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetPatchBaselineResult:97    """98    Provides an SSM Patch Baseline data source. Useful if you wish to reuse the default baselines provided.99    ## Example Usage100    To retrieve a baseline provided by AWS:101    ```python102    import pulumi103    import pulumi_aws as aws104    centos = aws.ssm.get_patch_baseline(name_prefix="AWS-",105        operating_system="CENTOS",106        owner="AWS")107    ```108    To retrieve a baseline on your account:109    ```python110    import pulumi111    import pulumi_aws as aws112    default_custom = aws.ssm.get_patch_baseline(default_baseline=True,113        name_prefix="MyCustomBaseline",114        operating_system="WINDOWS",115        owner="Self")116    ```117    :param bool default_baseline: Filters the results against the baselines default_baseline field.118    :param str name_prefix: Filter results by the baseline name prefix.119    :param str operating_system: The specified OS for the baseline.120    :param str owner: The owner of the baseline. Valid values: `All`, `AWS`, `Self` (the current account).121    """122    __args__ = dict()123    __args__['defaultBaseline'] = default_baseline124    __args__['namePrefix'] = name_prefix125    __args__['operatingSystem'] = operating_system126    __args__['owner'] = owner127    if opts is None:128        opts = pulumi.InvokeOptions()129    if opts.version is None:130        opts.version = _utilities.get_version()131    __ret__ = pulumi.runtime.invoke('aws:ssm/getPatchBaseline:getPatchBaseline', __args__, opts=opts, typ=GetPatchBaselineResult).value132    return AwaitableGetPatchBaselineResult(133        default_baseline=__ret__.default_baseline,134        description=__ret__.description,135        id=__ret__.id,136        name=__ret__.name,137        name_prefix=__ret__.name_prefix,138        operating_system=__ret__.operating_system,139        owner=__ret__.owner)140@_utilities.lift_output_func(get_patch_baseline)141def get_patch_baseline_output(default_baseline: Optional[pulumi.Input[Optional[bool]]] = None,142                              name_prefix: Optional[pulumi.Input[Optional[str]]] = None,143                              operating_system: Optional[pulumi.Input[Optional[str]]] = None,144                              owner: Optional[pulumi.Input[str]] = None,145                              opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetPatchBaselineResult]:146    """147    Provides an SSM Patch Baseline data source. Useful if you wish to reuse the default baselines provided.148    ## Example Usage149    To retrieve a baseline provided by AWS:150    ```python151    import pulumi152    import pulumi_aws as aws153    centos = aws.ssm.get_patch_baseline(name_prefix="AWS-",154        operating_system="CENTOS",155        owner="AWS")156    ```157    To retrieve a baseline on your account:158    ```python159    import pulumi160    import pulumi_aws as aws161    default_custom = aws.ssm.get_patch_baseline(default_baseline=True,162        name_prefix="MyCustomBaseline",163        operating_system="WINDOWS",164        owner="Self")165    ```166    :param bool default_baseline: Filters the results against the baselines default_baseline field.167    :param str name_prefix: Filter results by the baseline name prefix.168    :param str operating_system: The specified OS for the baseline.169    :param str owner: The owner of the baseline. Valid values: `All`, `AWS`, `Self` (the current account).170    """...__main__.py
Source:__main__.py  
1import pulumi2import pulumi_aws as aws3centos = aws.ssm.get_patch_baseline(name_prefix="AWS-",4    operating_system="CENTOS",...Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.
You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.
Get 100 minutes of automation test minutes FREE!!
